|
| __init__ (self) |
|
any | __init__ (self, float S) |
|
| __init__ (self, float X, float Y) |
|
| __init__ (self, vec2 v) |
|
| Copy (self, float Src) |
|
| SetZero (self) |
|
| SetOne (self) |
|
| Set (self, float S) |
|
| Set (self, float X, float Y) |
|
float | __getitem__ (self, int index) |
|
float | __setitem__ (self, int index) |
|
vec2 | __neg__ (self) |
|
vec2 | __iadd__ (self, vec2 _0) |
|
vec2 | __isub__ (self, vec2 _0) |
|
vec2 | __imul__ (self, vec2 _0) |
|
vec2 | __imul__ (self, float _0) |
|
vec2 | __itruediv__ (self, vec2 _0) |
|
vec2 | __itruediv__ (self, float _0) |
|
| Transform (self, mat3 _0) |
|
| __imul__ (self, mat3 _0) |
|
| TransformCoordinate (self, mat4 _0) |
|
| TransformNormal (self, mat4 _0) |
| (x, y, 0, 1), projects the result back into w = 1
|
|
vec2 | __add__ (self, vec2 _0) |
|
vec2 | __sub__ (self, vec2 _0) |
|
vec2 | __mul__ (self, vec2 _0) |
|
vec2 | __mul__ (self, float _0) |
|
vec2 | __truediv__ (self, vec2 _0) |
|
vec2 | __truediv__ (self, float _0) |
|
vec2 | __mul__ (self, mat3 _0) |
|
bool | __eq__ (self, vec2 _0) |
|
bool | __ne__ (self, vec2 _0) |
|
float | Length (self) |
|
float | LengthSq (self) |
|
float | Normalize (self) |
|
float | NormalizeSafe (self, vec2 Fallback) |
|
bool | IsValid (self) |
|
bool | IsNormalized (self, float Eps) |
|
bool | IsZero (self, float Eps) |
|
vec2 | ToRound (self) |
|
float | distance2 (self, vec2 _0) |
|
float | distance (self, vec2 _0) |
|
float | DistanceToLineSegSq (self, vec2 A, vec2 B, float pScale=None) |
|
int | GetDimension (self) |
|
float | ToFloatPtr (self) |
|
float | ToFloatPtr (self) |
|
| ToPolar (self, float Radius, float Angle) |
|
float | ToBaryCentric (self, vec2 t0, vec2 t1, vec2 t2, float u, float v) |
|
bool | IsInsideTri (self, vec2 t0, vec2 t1, vec2 t2) |
|
vec2 | ToNormal (self) |
|
vec2 | ToPerpCw (self) |
|
vec2 | ToPerpCcw (self) |
|
| AddWithWeight (self, vec2 src, float weight) |
| for compatibility with OpenSubdiv ////
|
|
| SetPosition (self, float aX, float aY) |
|
float | GetPosition (self) |
|
|
bool | Equals (vec2 _0, vec2 _1, float Eps) |
|
vec2 | Round (vec2 _0) |
|
vec2 | Abs (vec2 _0) |
|
vec2 | Fract (vec2 _0) |
|
float | Angle (vec2 _0, vec2 _1) |
|
float | AreaSigned (vec2 t0, vec2 t1, vec2 t2) |
|
float | Ccw (vec2 _0, vec2 _1) |
|
vec2 | Clamp (vec2 Value, vec2 Lo, vec2 Hi) |
|
float | Distance (vec2 _0, vec2 _1) |
|
float | DistanceSq (vec2 _0, vec2 _1) |
|
float | Dot (vec2 _0, vec2 _1) |
|
vec2 | Lerp (vec2 _0, vec2 _1, float _2) |
|
vec2 | Lerp05 (vec2 _0, vec2 _1) |
|
vec2 | Max (vec2 _0, vec2 _1) |
|
vec2 | Min (vec2 _0, vec2 _1) |
|
vec2 | PerpCw (vec2 _0) |
|
vec2 | PerpCcw (vec2 _0) |
|
vec2 | Reflect (vec2 RayDir, vec2 Normal) |
|
vec2 | Refract (vec2 RayDir, vec2 Normal, float Eta) |
|
vec2 | Truncate (vec2 u, float MaxLength) |
|
vec2 | RandRange1 () |
|
vec2 | RandNormal () |
|
vec2 | Rand (vec2 Lo, vec2 Hi) |
|
bool | SegIntersection (vec2 L0, vec2 L1, vec2 R0, vec2 R1, float l=None, float r=None) |
|
vec2 | FromBaryCentric (vec2 t0, vec2 t1, vec2 t2, float u, float v) |
|
vec2 | FromPolar (float Radius, float Angle) |
|