Public Member Functions | |
__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) |
Static Public Member Functions | |
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) |
coat.vec2.__init__ | ( | self | ) |
any coat.vec2.__init__ | ( | self, | |
float | S ) |
coat.vec2.__init__ | ( | self, | |
float | X, | ||
float | Y ) |
coat.vec2.__init__ | ( | self, | |
vec2 | v ) |
bool coat.vec2.__eq__ | ( | self, | |
vec2 | _0 ) |
float coat.vec2.__getitem__ | ( | self, | |
int | index ) |
vec2 coat.vec2.__imul__ | ( | self, | |
float | _0 ) |
coat.vec2.__imul__ | ( | self, | |
mat3 | _0 ) |
vec2 coat.vec2.__itruediv__ | ( | self, | |
float | _0 ) |
vec2 coat.vec2.__mul__ | ( | self, | |
float | _0 ) |
bool coat.vec2.__ne__ | ( | self, | |
vec2 | _0 ) |
vec2 coat.vec2.__neg__ | ( | self | ) |
float coat.vec2.__setitem__ | ( | self, | |
int | index ) |
vec2 coat.vec2.__truediv__ | ( | self, | |
float | _0 ) |
coat.vec2.AddWithWeight | ( | self, | |
vec2 | src, | ||
float | weight ) |
for compatibility with OpenSubdiv ////
coat.vec2.Copy | ( | self, | |
float | Src ) |
float coat.vec2.distance | ( | self, | |
vec2 | _0 ) |
float coat.vec2.distance2 | ( | self, | |
vec2 | _0 ) |
|
static |
int coat.vec2.GetDimension | ( | self | ) |
float coat.vec2.GetPosition | ( | self | ) |
bool coat.vec2.IsNormalized | ( | self, | |
float | Eps ) |
bool coat.vec2.IsValid | ( | self | ) |
bool coat.vec2.IsZero | ( | self, | |
float | Eps ) |
float coat.vec2.Length | ( | self | ) |
float coat.vec2.LengthSq | ( | self | ) |
float coat.vec2.Normalize | ( | self | ) |
float coat.vec2.NormalizeSafe | ( | self, | |
vec2 | Fallback ) |
|
static |
|
static |
|
static |
coat.vec2.Set | ( | self, | |
float | S ) |
coat.vec2.Set | ( | self, | |
float | X, | ||
float | Y ) |
coat.vec2.SetOne | ( | self | ) |
coat.vec2.SetPosition | ( | self, | |
float | aX, | ||
float | aY ) |
coat.vec2.SetZero | ( | self | ) |
float coat.vec2.ToFloatPtr | ( | self | ) |
float coat.vec2.ToFloatPtr | ( | self | ) |
vec2 coat.vec2.ToNormal | ( | self | ) |
vec2 coat.vec2.ToPerpCcw | ( | self | ) |
vec2 coat.vec2.ToPerpCw | ( | self | ) |
coat.vec2.ToPolar | ( | self, | |
float | Radius, | ||
float | Angle ) |
vec2 coat.vec2.ToRound | ( | self | ) |
coat.vec2.Transform | ( | self, | |
mat3 | _0 ) |
coat.vec2.TransformCoordinate | ( | self, | |
mat4 | _0 ) |
coat.vec2.TransformNormal | ( | self, | |
mat4 | _0 ) |
(x, y, 0, 1), projects the result back into w = 1