CocosSharp.CCPoint Members

The members of CocosSharp.CCPoint are listed below.

See Also: Inherited members from System.ValueType

static readonly | AnchorLowerLeft | CCPoint. Equals to CCPoint(0, 0). |

static readonly | AnchorLowerRight | CCPoint. Equals to CCPoint(1, 0). |

static readonly | AnchorMiddle | CCPoint. Equals to CCPoint(0.5f, 0.5f). |

static readonly | AnchorMiddleBottom | CCPoint. Equals to CCPoint(0.5f, 0). |

static readonly | AnchorMiddleLeft | CCPoint. Equals to CCPoint(0, 0.5f). |

static readonly | AnchorMiddleRight | CCPoint. Equals to CCPoint(1, 0.5f). |

static readonly | AnchorMiddleTop | CCPoint. Equals to CCPoint(0.5f, 1). |

static readonly | AnchorUpperLeft | CCPoint. Equals to CCPoint(0, 1). |

static readonly | AnchorUpperRight | CCPoint. Equals to CCPoint(1, 1). |

static readonly | NegativeInfinity | CCPoint. A point represented by CCPoint(float.NegativeInfinity, float.NegativeInfinity). |

X | float. The X component. | |

Y | float. The Y component. | |

static readonly | Zero | CCPoint. Returns a CCPoint with all of its components set to zero. |

[read-only] | Angle | float. Documentation for this section has not yet been entered. |

[read-only] | InvertX | CCPoint. Documentation for this section has not yet been entered. |

[read-only] | InvertY | CCPoint. Inverts the Y component of the component. |

[read-only] | Length | float. Calculates the length of the vector. |

[read-only] | LengthSquared | float. Calculates the length of the vector squared. |

static | AngleSigned(CCPoint, CCPoint)Returns the signed angle in radians between two vector directions. | |

Clamp(float)Documentation for this section has not yet been entered. | ||

static | Clamp(CCPoint, float)Documentation for this section has not yet been entered. | |

static | Clamp(CCPoint, CCPoint, CCPoint)Clamp a point between from and to. | |

static | Clamp(float, float, float)Clamp a value between from and to. | |

static | ComputationOperation(CCPoint, CCPoint.ComputationOperationDelegate)Run a math operation function on each point component Abs, Floor, Ceiling, Round. | |

static | CrossProduct(CCPoint, CCPoint)Calculates cross product of two points. | |

static | Distance(CCPoint, CCPoint)Calculates the distance between two points float v2.1.4 | |

DistanceSquared(ref CCPoint)Documentation for this section has not yet been entered. | ||

static | Dot(CCPoint, CCPoint)Calculates dot product of two points. | |

static | Equal(ref CCPoint, ref CCPoint)Returns a value that indicates whether the current point instance is equal to another point instance. | |

Equals(CCPoint)Returns a value that indicates whether the current point instance is equal to another point instance. | ||

override | Equals(object)Returns a value that indicates whether the current point instance is equal to an object instance. | |

static | ForAngle(float)Converts radians to a normalized vector. | |

static | FuzzyEqual(CCPoint, CCPoint, float)Returns if points are equal with some degree of variance. | |

override | GetHashCode()Gets the hash code of the point object. | |

static | IntersectPoint(CCPoint, CCPoint, CCPoint, CCPoint)Returns the intersection point of line A-B, C-D | |

IsNear(CCPoint, float)Documentation for this section has not yet been entered. | ||

static | IsNear(CCPoint, CCPoint, float)Documentation for this section has not yet been entered. | |

static | Lerp(CCPoint, CCPoint, float)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)A general line-line intersection test. | |

static | Midpoint(CCPoint, CCPoint)Calculates midpoint between two points. | |

static | MultiplyComponents(CCPoint, CCPoint)Multiplies a and b components, a.X*b.X, a.Y*b.Y. | |

Normalize()Returns point multiplied to a length of 1. If the point is 0, it returns (1, 0). | ||

static | Normalize(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)Calculates the point offset by delta components dx and dy. | ||

static | Parse(string)Creates a point from a string representation. "x=0, y=0" | |

static | PerpendicularCCW(CCPoint)Documentation for this section has not yet been entered. | |

static | PerpendicularCW(CCPoint)Documentation for this section has not yet been entered. | |

static | Project(CCPoint, CCPoint)Calculates the projection of this over other. | |

static | Rotate(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)Rotates a point counter clockwise by the angle around a pivot the rotated point v2.1.4 | |

static | SegmentIntersect(CCPoint, CCPoint, CCPoint, CCPoint)Tests if segment A-B instersects with segment C-D | |

Sub(ref CCPoint)Subtracts source point from this point. | ||

static | ToAngle(CCPoint)Converts a point to radians. | |

override | ToString()String representation of the point. | |

static | Unrotate(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 |

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 | UnaryNegation | Returns a point pointing in the opposite direction. |

static | UnaryPlus | Returns 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. |