CocosSharp.CCPoint Members

The members of CocosSharp.CCPoint are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Creates a new instance of CCPoint.
Creates a new instance of CCPoint.
Creates a new instance of CCPoint.

Public Fields

static readonly
AnchorLowerLeftCCPoint. Equals to CCPoint(0, 0).
static readonly
AnchorLowerRightCCPoint. Equals to CCPoint(1, 0).
static readonly
AnchorMiddleCCPoint. Equals to CCPoint(0.5f, 0.5f).
static readonly
AnchorMiddleBottomCCPoint. Equals to CCPoint(0.5f, 0).
static readonly
AnchorMiddleLeftCCPoint. Equals to CCPoint(0, 0.5f).
static readonly
AnchorMiddleRightCCPoint. Equals to CCPoint(1, 0.5f).
static readonly
AnchorMiddleTopCCPoint. Equals to CCPoint(0.5f, 1).
static readonly
AnchorUpperLeftCCPoint. Equals to CCPoint(0, 1).
static readonly
AnchorUpperRightCCPoint. Equals to CCPoint(1, 1).
static readonly
NegativeInfinityCCPoint. A point represented by CCPoint(float.NegativeInfinity, float.NegativeInfinity).
Xfloat. The X component.
Yfloat. The Y component.
static readonly
ZeroCCPoint. Returns a CCPoint with all of its components set to zero.

Public Properties

[read-only]
Anglefloat. Documentation for this section has not yet been entered.
[read-only]
InvertXCCPoint. Documentation for this section has not yet been entered.
[read-only]
InvertYCCPoint. Inverts the Y component of the component.
[read-only]
Lengthfloat. Calculates the length of the vector.
[read-only]
LengthSquaredfloat. Calculates the length of the vector squared.

Public Methods

static
AngleSigned(CCPoint, CCPoint) : float
Returns the signed angle in radians between two vector directions.
Clamp(float) : CCPoint
Documentation for this section has not yet been entered.
static
Clamp(CCPoint, float) : CCPoint
Documentation for this section has not yet been entered.
static
Clamp(CCPoint, CCPoint, CCPoint) : CCPoint
Clamp a point between from and to.
static
Clamp(float, float, float) : float
Clamp a value between from and to.
static
ComputationOperation(CCPoint, CCPoint.ComputationOperationDelegate) : CCPoint
Run a math operation function on each point component Abs, Floor, Ceiling, Round.
static
CrossProduct(CCPoint, CCPoint) : float
Calculates cross product of two points.
static
Distance(CCPoint, CCPoint) : float
Calculates the distance between two points float v2.1.4
DistanceSquared(ref CCPoint) : float
Documentation for this section has not yet been entered.
static
Dot(CCPoint, CCPoint) : float
Calculates dot product of two points.
static
Equal(ref CCPoint, ref CCPoint) : bool
Returns a value that indicates whether the current point instance is equal to another point instance.
Equals(CCPoint) : bool
Returns a value that indicates whether the current point instance is equal to another point instance.
override
Equals(object) : bool
Returns a value that indicates whether the current point instance is equal to an object instance.
static
ForAngle(float) : CCPoint
Converts radians to a normalized vector.
static
FuzzyEqual(CCPoint, CCPoint, float) : bool
Returns if points are equal with some degree of variance.
override
GetHashCode() : int
Gets the hash code of the point object.
static
IntersectPoint(CCPoint, CCPoint, CCPoint, CCPoint) : CCPoint
Returns the intersection point of line A-B, C-D
IsNear(CCPoint, float) : bool
Documentation for this section has not yet been entered.
static
IsNear(CCPoint, CCPoint, float) : bool
Documentation for this section has not yet been entered.
static
Lerp(CCPoint, CCPoint, float) : CCPoint
Linear Interpolation between two points a and b alpha == 0 ? a alpha == 1 ? b otherwise a value between a..b v2.1.4
static
LineIntersect(CCPoint, CCPoint, CCPoint, CCPoint, ref float, ref float) : bool
A general line-line intersection test.
static
Midpoint(CCPoint, CCPoint) : CCPoint
Calculates midpoint between two points.
static
MultiplyComponents(CCPoint, CCPoint) : CCPoint
Multiplies a and b components, a.X*b.X, a.Y*b.Y.
Normalize() : float
Returns point multiplied to a length of 1. If the point is 0, it returns (1, 0).
static
Normalize(CCPoint) : CCPoint
Normalizes the components of this point (convert to mag 1), and returns the orignial magnitude of the vector defined by the XY components of this point.
Offset(float, float) : CCPoint
Calculates the point offset by delta components dx and dy.
static
Parse(string) : CCPoint
Creates a point from a string representation. "x=0, y=0"
static
PerpendicularCCW(CCPoint) : CCPoint
Documentation for this section has not yet been entered.
static
PerpendicularCW(CCPoint) : CCPoint
Documentation for this section has not yet been entered.
static
Project(CCPoint, CCPoint) : CCPoint
Calculates the projection of this over other.
static
Rotate(CCPoint, CCPoint) : CCPoint
Complex multiplication of two points ("rotates" two points). Point vector with an angle of this.getAngle() + other.getAngle(), and a length of this.getLength() * other.getLength(). v2.1.4
static
RotateByAngle(CCPoint, CCPoint, float) : CCPoint
Rotates a point counter clockwise by the angle around a pivot the rotated point v2.1.4
static
SegmentIntersect(CCPoint, CCPoint, CCPoint, CCPoint) : bool
Tests if segment A-B instersects with segment C-D
Sub(ref CCPoint) : CCPoint
Subtracts source point from this point.
static
ToAngle(CCPoint) : float
Converts a point to radians.
override
ToString() : string
String representation of the point.
static
Unrotate(CCPoint, CCPoint) : CCPoint
Unrotates two points. Point vector with an angle of this.getAngle() - other.getAngle(), and a length of this.getLength() * other.getLength(). v2.1.4

Public Operators

static
Addition(CCPoint, CCPoint)Adds two Points.
static
Division(CCPoint, float)Divide a point by a float value.
static
Equality(CCPoint, CCPoint)Tests points for equality.
static
Inequality(CCPoint, CCPoint)Tests points for inequality.
static
Multiply(CCPoint, CCPoint)Multiplies a point another vector.
static
Multiply(CCPoint, float)Multiplies a point by a value.
static
Subtraction(CCPoint, CCPoint)Subtracts a point from a point.
static
UnaryNegationReturns a point pointing in the opposite direction.
static
UnaryPlusReturns an extended point.
static
Conversion to CocosSharp.CCPoint(Explicit)Allow cast from CCSize to CCPoint.
static
Conversion to CocosSharp.CCVector2(Implicit)Allows cast from Point to CCVector2.
static
Conversion to CocosSharp.CCPoint(Implicit)Allows cast from CCVector2 to CCPoint.