Skip to main content

CCSize

CCSize

Cocos2D

Type: Struct

Constructors

CCSize(float, float)

Propertys

AsRect(Cocos2D.CCRect)
Center(Cocos2D.CCPoint)
Diagonal(System.Single)

Computes the diagonal length of this size. This method will always compute the length using Sqrt()

Inverted(Cocos2D.CCSize)

Returns the inversion of this size, which is the height and width swapped.

Methods

Clamp(CCSize)

Cocos2D.CCSize Clamp(CCSize)(Cocos2D.CCSize max)
Parameters:
max (Cocos2D.CCSize)
Returns:
Cocos2D.CCSize

Equal(ref CCSize, ref CCSize)

System.Boolean Equal(ref CCSize, ref CCSize)(Cocos2D.CCSize size1, Cocos2D.CCSize size2)
Parameters:
size1 (Cocos2D.CCSize)
size2 (Cocos2D.CCSize)
Returns:
System.Boolean

Equals(CCSize)

System.Boolean Equals(CCSize)(Cocos2D.CCSize s)
Parameters:
s (Cocos2D.CCSize)
Returns:
System.Boolean

Equals(object)

System.Boolean Equals(object)(System.Object obj)
Parameters:
obj (System.Object)
Returns:
System.Boolean
Example

GetHashCode()

System.Int32 GetHashCode()()
Returns:
System.Int32
Example

Parse(string)

Cocos2D.CCSize Parse(string)(System.String s)
Parameters:
s (System.String)
Returns:
Cocos2D.CCSize

ToString()

System.String ToString()()
Returns:
System.String
Example

Fields

Height(System.Single)
Width(System.Single)
Zero(Cocos2D.CCSize)

Operators

operator +(CCSize, CCSize)

operator +(CCSize, float)

operator /(CCSize, float)

operator ==(CCSize, CCSize)

explicit operator CCSize(CCPoint)

operator !=(CCSize, CCSize)

operator *(CCSize, float)

operator -(CCSize, float)