CCPoint
CCPoint
Cocos2DType: Struct
Constructors
CCPoint(CCPoint)
CCPoint(Point)
CCPoint(Vector2)
CCPoint(float, float)
Fields
AnchorLowerLeft(Cocos2D.CCPoint)
AnchorLowerRight(Cocos2D.CCPoint)
AnchorMiddle(Cocos2D.CCPoint)
AnchorMiddleBottom(Cocos2D.CCPoint)
AnchorMiddleLeft(Cocos2D.CCPoint)
AnchorMiddleRight(Cocos2D.CCPoint)
AnchorMiddleTop(Cocos2D.CCPoint)
AnchorUpperLeft(Cocos2D.CCPoint)
AnchorUpperRight(Cocos2D.CCPoint)
X(System.Single)
Y(System.Single)
Zero(Cocos2D.CCPoint)
Propertys
Angle(System.Single)
InvertY(Cocos2D.CCPoint)
Length(System.Single)
LengthSquared(System.Single)
Reverse(Cocos2D.CCPoint)
Methods
AngleSigned(CCPoint, CCPoint)
System.Single AngleSigned(CCPoint, CCPoint)(Cocos2D.CCPoint a, Cocos2D.CCPoint b)Parameters:
a (Cocos2D.CCPoint)b (Cocos2D.CCPoint)Returns:
System.SingleClamp(CCPoint, CCPoint, CCPoint)
Cocos2D.CCPoint Clamp(CCPoint, CCPoint, CCPoint)(Cocos2D.CCPoint p, Cocos2D.CCPoint from, Cocos2D.CCPoint to)Parameters:
p (Cocos2D.CCPoint)from (Cocos2D.CCPoint)to (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointClamp(float, float, float)
System.Single Clamp(float, float, float)(System.Single value, System.Single min_inclusive, System.Single max_inclusive)Parameters:
value (System.Single)min_inclusive (System.Single)max_inclusive (System.Single)Returns:
System.SingleComputationOperation(CCPoint, ComputationOperationDelegate)
Cocos2D.CCPoint ComputationOperation(CCPoint, ComputationOperationDelegate)(Cocos2D.CCPoint p, Cocos2D.CCPoint.ComputationOperationDelegate del)Parameters:
p (Cocos2D.CCPoint)del (Cocos2D.CCPoint.ComputationOperationDelegate)Returns:
Cocos2D.CCPointCrossProduct(CCPoint, CCPoint)
System.Single CrossProduct(CCPoint, CCPoint)(Cocos2D.CCPoint v1, Cocos2D.CCPoint v2)Parameters:
v1 (Cocos2D.CCPoint)v2 (Cocos2D.CCPoint)Returns:
System.SingleDistance(CCPoint, CCPoint)
System.Single Distance(CCPoint, CCPoint)(Cocos2D.CCPoint v1, Cocos2D.CCPoint v2)Parameters:
v1 (Cocos2D.CCPoint)v2 (Cocos2D.CCPoint)Returns:
System.SingleDistanceSquared(ref CCPoint)
System.Single DistanceSquared(ref CCPoint)(Cocos2D.CCPoint v2)Parameters:
v2 (Cocos2D.CCPoint)Returns:
System.SingleDot(CCPoint, CCPoint)
System.Single Dot(CCPoint, CCPoint)(Cocos2D.CCPoint p1, Cocos2D.CCPoint p2)Parameters:
p1 (Cocos2D.CCPoint)p2 (Cocos2D.CCPoint)Returns:
System.SingleDotProduct(CCPoint, CCPoint)
System.Single DotProduct(CCPoint, CCPoint)(Cocos2D.CCPoint v1, Cocos2D.CCPoint v2)Parameters:
v1 (Cocos2D.CCPoint)v2 (Cocos2D.CCPoint)Returns:
System.SingleEqual(ref CCPoint, ref CCPoint)
System.Boolean Equal(ref CCPoint, ref CCPoint)(Cocos2D.CCPoint point1, Cocos2D.CCPoint point2)Parameters:
point1 (Cocos2D.CCPoint)point2 (Cocos2D.CCPoint)Returns:
System.BooleanEquals(CCPoint)
System.Boolean Equals(CCPoint)(Cocos2D.CCPoint p)Parameters:
p (Cocos2D.CCPoint)Returns:
System.BooleanEquals(object)
System.Boolean Equals(object)(System.Object obj)Parameters:
obj (System.Object)Returns:
System.BooleanExample
ForAngle(float)
Cocos2D.CCPoint ForAngle(float)(System.Single a)Parameters:
a (System.Single)Returns:
Cocos2D.CCPointFuzzyEqual(CCPoint, CCPoint, float)
System.Boolean FuzzyEqual(CCPoint, CCPoint, float)(Cocos2D.CCPoint a, Cocos2D.CCPoint b, System.Single variance)Parameters:
a (Cocos2D.CCPoint)b (Cocos2D.CCPoint)variance (System.Single)Returns:
System.BooleanGetHashCode()
System.Int32 GetHashCode()()Returns:
System.Int32Example
IntersectPoint(CCPoint, CCPoint, CCPoint, CCPoint)
Cocos2D.CCPoint IntersectPoint(CCPoint, CCPoint, CCPoint, CCPoint)(Cocos2D.CCPoint A, Cocos2D.CCPoint B, Cocos2D.CCPoint C, Cocos2D.CCPoint D)Parameters:
A (Cocos2D.CCPoint)B (Cocos2D.CCPoint)C (Cocos2D.CCPoint)D (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointIsNear(CCPoint, CCPoint, float)
System.Boolean IsNear(CCPoint, CCPoint, float)(Cocos2D.CCPoint p1, Cocos2D.CCPoint p2, System.Single dist)Parameters:
p1 (Cocos2D.CCPoint)p2 (Cocos2D.CCPoint)dist (System.Single)Returns:
System.BooleanIsNear(CCPoint, float)
System.Boolean IsNear(CCPoint, float)(Cocos2D.CCPoint p2, System.Single dist)Parameters:
p2 (Cocos2D.CCPoint)dist (System.Single)Returns:
System.BooleanLerp(CCPoint, CCPoint, float)
Cocos2D.CCPoint Lerp(CCPoint, CCPoint, float)(Cocos2D.CCPoint a, Cocos2D.CCPoint b, System.Single alpha)Parameters:
a (Cocos2D.CCPoint)b (Cocos2D.CCPoint)alpha (System.Single)Returns:
Cocos2D.CCPointLineIntersect(CCPoint, CCPoint, CCPoint, CCPoint, ref float, ref float)
System.Boolean LineIntersect(CCPoint, CCPoint, CCPoint, CCPoint, ref float, ref float)(Cocos2D.CCPoint A, Cocos2D.CCPoint B, Cocos2D.CCPoint C, Cocos2D.CCPoint D, System.Single S, System.Single T)Parameters:
A (Cocos2D.CCPoint)B (Cocos2D.CCPoint)C (Cocos2D.CCPoint)D (Cocos2D.CCPoint)S (System.Single)T (System.Single)Returns:
System.BooleanMidpoint(CCPoint, CCPoint)
Cocos2D.CCPoint Midpoint(CCPoint, CCPoint)(Cocos2D.CCPoint p1, Cocos2D.CCPoint p2)Parameters:
p1 (Cocos2D.CCPoint)p2 (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointMultiplyComponents(CCPoint, CCPoint)
Cocos2D.CCPoint MultiplyComponents(CCPoint, CCPoint)(Cocos2D.CCPoint a, Cocos2D.CCPoint b)Parameters:
a (Cocos2D.CCPoint)b (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointNormalize()
System.Single Normalize()()Returns:
System.SingleNormalize(CCPoint)
Cocos2D.CCPoint Normalize(CCPoint)(Cocos2D.CCPoint p)Parameters:
p (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointOffset(float, float)
Cocos2D.CCPoint Offset(float, float)(System.Single dx, System.Single dy)Parameters:
dx (System.Single)dy (System.Single)Returns:
Cocos2D.CCPointParse(string)
Cocos2D.CCPoint Parse(string)(System.String s)Parameters:
s (System.String)Returns:
Cocos2D.CCPointPerp(CCPoint)
Cocos2D.CCPoint Perp(CCPoint)(Cocos2D.CCPoint p)Parameters:
p (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointPerpendicularClockwise(CCPoint)
Cocos2D.CCPoint PerpendicularClockwise(CCPoint)(Cocos2D.CCPoint v)Parameters:
v (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointPerpendicularCounterClockwise(CCPoint)
Cocos2D.CCPoint PerpendicularCounterClockwise(CCPoint)(Cocos2D.CCPoint v)Parameters:
v (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointProject(CCPoint, CCPoint)
Cocos2D.CCPoint Project(CCPoint, CCPoint)(Cocos2D.CCPoint v1, Cocos2D.CCPoint v2)Parameters:
v1 (Cocos2D.CCPoint)v2 (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointRotate(CCPoint, CCPoint)
Cocos2D.CCPoint Rotate(CCPoint, CCPoint)(Cocos2D.CCPoint v1, Cocos2D.CCPoint v2)Parameters:
v1 (Cocos2D.CCPoint)v2 (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointRotateByAngle(CCPoint, CCPoint, float)
Cocos2D.CCPoint RotateByAngle(CCPoint, CCPoint, float)(Cocos2D.CCPoint v, Cocos2D.CCPoint pivot, System.Single angle)Parameters:
v (Cocos2D.CCPoint)pivot (Cocos2D.CCPoint)angle (System.Single)Returns:
Cocos2D.CCPointSegmentIntersect(CCPoint, CCPoint, CCPoint, CCPoint)
System.Boolean SegmentIntersect(CCPoint, CCPoint, CCPoint, CCPoint)(Cocos2D.CCPoint A, Cocos2D.CCPoint B, Cocos2D.CCPoint C, Cocos2D.CCPoint D)Parameters:
A (Cocos2D.CCPoint)B (Cocos2D.CCPoint)C (Cocos2D.CCPoint)D (Cocos2D.CCPoint)Returns:
System.BooleanSub(ref CCPoint)
Cocos2D.CCPoint Sub(ref CCPoint)(Cocos2D.CCPoint v2)Parameters:
v2 (Cocos2D.CCPoint)Returns:
Cocos2D.CCPointToAngle(CCPoint)
System.Single ToAngle(CCPoint)(Cocos2D.CCPoint v)Parameters:
v (Cocos2D.CCPoint)Returns:
System.SingleToString()
System.String ToString()()Returns:
System.StringExample
Unrotate(CCPoint, CCPoint)
Cocos2D.CCPoint Unrotate(CCPoint, CCPoint)(Cocos2D.CCPoint v1, Cocos2D.CCPoint v2)Parameters:
v1 (Cocos2D.CCPoint)v2 (Cocos2D.CCPoint)Returns:
Cocos2D.CCPoint