CCSize
CCSize
Cocos2DType: 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.CCSizeEqual(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.BooleanEquals(CCSize)
System.Boolean Equals(CCSize)(Cocos2D.CCSize s)Parameters:
s (Cocos2D.CCSize)Returns:
System.BooleanEquals(object)
System.Boolean Equals(object)(System.Object obj)Parameters:
obj (System.Object)Returns:
System.BooleanExample
GetHashCode()
System.Int32 GetHashCode()()Returns:
System.Int32Example
Parse(string)
Cocos2D.CCSize Parse(string)(System.String s)Parameters:
s (System.String)Returns:
Cocos2D.CCSizeToString()
System.String ToString()()Returns:
System.StringExample
Fields
Height(System.Single)
Width(System.Single)
Zero(Cocos2D.CCSize)