|
| CCPoint () |
| CCPoint (float x, float y) |
| CCPoint ( local x, local y) |
| CCPoint (const CCPoint &other) |
| CCPoint (const CCSize &size) |
CCPoint & | operator= (const CCPoint &other) |
CCPoint & | operator= (const CCSize &size) |
CCPoint | operator+ (const CCPoint &right) const |
CCPoint | operator- (const CCPoint &right) const |
CCPoint | operator- () const |
CCPoint | operator* (float a) const |
CCPoint | operator/ (float a) const |
void | setPoint (float x, float y) |
bool | equals (const CCPoint &target) const |
bool | fuzzyEquals (const CCPoint &target, float variance) const |
float | getLength () const |
| Calculates distance between point an origin. More...
|
|
float | getLengthSq () const |
| Calculates the square length of a CCPoint (not calling sqrt() ) More...
|
|
float | getDistanceSq (const CCPoint &other) const |
| Calculates the square distance between two points (not calling sqrt() ) More...
|
|
local | getDistanceSq ( local other) |
| Calculates the square distance between two points (not calling sqrt() ) More...
|
|
float | getDistance (const CCPoint &other) const |
| Calculates the distance between two points. More...
|
|
local | getDistance ( local other) |
| Calculates the distance between two points. More...
|
|
float | getAngle () const |
float | getAngle (const CCPoint &other) const |
float | dot (const CCPoint &other) const |
| Calculates dot product of two points. More...
|
|
local | dot ( local other) |
| Calculates dot product of two points. More...
|
|
float | cross (const CCPoint &other) const |
| Calculates cross product of two points. More...
|
|
local | cross ( local other) |
| Calculates cross product of two points. More...
|
|
CCPoint | getPerp () const |
| Calculates perpendicular of v, rotated 90 degrees counter-clockwise – cross(v, perp(v)) >= 0. More...
|
|
CCPoint | getRPerp () const |
| Calculates perpendicular of v, rotated 90 degrees clockwise – cross(v, rperp(v)) <= 0. More...
|
|
local | getRPerp () |
| Calculates perpendicular of v, rotated 90 degrees clockwise – cross(v, rperp(v)) <= 0. More...
|
|
CCPoint | project (const CCPoint &other) const |
| Calculates the projection of this over other. More...
|
|
local | project ( local other) |
| Calculates the projection of this over other. More...
|
|
CCPoint | rotate (const CCPoint &other) const |
| Complex multiplication of two points ("rotates" two points). More...
|
|
CCPoint | unrotate (const CCPoint &other) const |
| Unrotates two points. More...
|
|
local | unrotate ( local other) |
| Unrotates two points. More...
|
|
CCPoint | normalize () const |
| Returns point multiplied to a length of 1. More...
|
|
CCPoint | lerp (const CCPoint &other, float alpha) const |
| Linear Interpolation between two points a and b. More...
|
|
local | lerp ( local other, local alpha) |
| Linear Interpolation between two points a and b. More...
|
|
CCPoint | rotateByAngle (const CCPoint &pivot, float angle) const |
| Rotates a point counter clockwise by the angle around a pivot. More...
|
|
local | rotateByAngle ( local pivot, local angle) |
| Rotates a point counter clockwise by the angle around a pivot. More...
|
|