wHiteRabbiT-sTudio Framework
wHiteRabbiT.Unity.Math.Maths Class Reference

Static Public Member Functions

static float OrientedAngle (Vector3 v0, Vector3 v1, Vector3 up)
 
static float OrientedAngleQ (Vector3 v0, Vector3 v1, Vector3 up)
 
static float OrientedAngleQ2 (Vector3 from, Vector3 to, Vector3 up)
 
static float Lerp (float a, float b, float t)
 
static Vector2 Lerp (Vector2 a, Vector2 b, float t)
 
static Vector3 Lerp (Vector3 a, Vector3 b, float t)
 
static Vector4 Lerp (Vector4 a, Vector4 b, float t)
 
static Vector3 MaxMagnitude (Vector3 v, float max)
 
static Vector2 Ellipse (float a, float b, float cos, float sin)
 
static Vector2 PointOnRect (float w, float h, Vector2 dir)
 
static Vector2 PointOnRect (float w, float h, float angle)
 
static Vector2 ClosestPointOnSegment (Vector2 P, Vector2 A, Vector2 B)
 
static Vector3 ClosestPointOnSegment (Vector3 P, Vector3 A, Vector3 B)
 
static Vector2 ClosestPointOnRect (Vector2 P, Rect r)
 
static bool IsInRect (Vector2 P, Rect r)
 
static float DistanceToLine (Vector3 A, Vector3 B, Vector3 point)
 
static float DistanceToLine (Ray ray, Vector3 point)
 
static float Frac (float a)
 

Member Function Documentation

static Vector2 wHiteRabbiT.Unity.Math.Maths.ClosestPointOnRect ( Vector2  P,
Rect  r 
)
static
static Vector2 wHiteRabbiT.Unity.Math.Maths.ClosestPointOnSegment ( Vector2  P,
Vector2  A,
Vector2  B 
)
static
static Vector3 wHiteRabbiT.Unity.Math.Maths.ClosestPointOnSegment ( Vector3  P,
Vector3  A,
Vector3  B 
)
static
static float wHiteRabbiT.Unity.Math.Maths.DistanceToLine ( Vector3  A,
Vector3  B,
Vector3  point 
)
static
static float wHiteRabbiT.Unity.Math.Maths.DistanceToLine ( Ray  ray,
Vector3  point 
)
static
static Vector2 wHiteRabbiT.Unity.Math.Maths.Ellipse ( float  a,
float  b,
float  cos,
float  sin 
)
static
static float wHiteRabbiT.Unity.Math.Maths.Frac ( float  a)
static
static bool wHiteRabbiT.Unity.Math.Maths.IsInRect ( Vector2  P,
Rect  r 
)
static
static float wHiteRabbiT.Unity.Math.Maths.Lerp ( float  a,
float  b,
float  t 
)
static
static Vector2 wHiteRabbiT.Unity.Math.Maths.Lerp ( Vector2  a,
Vector2  b,
float  t 
)
static
static Vector3 wHiteRabbiT.Unity.Math.Maths.Lerp ( Vector3  a,
Vector3  b,
float  t 
)
static
static Vector4 wHiteRabbiT.Unity.Math.Maths.Lerp ( Vector4  a,
Vector4  b,
float  t 
)
static
static Vector3 wHiteRabbiT.Unity.Math.Maths.MaxMagnitude ( Vector3  v,
float  max 
)
static
static float wHiteRabbiT.Unity.Math.Maths.OrientedAngle ( Vector3  v0,
Vector3  v1,
Vector3  up 
)
static
static float wHiteRabbiT.Unity.Math.Maths.OrientedAngleQ ( Vector3  v0,
Vector3  v1,
Vector3  up 
)
static
static float wHiteRabbiT.Unity.Math.Maths.OrientedAngleQ2 ( Vector3  from,
Vector3  to,
Vector3  up 
)
static
static Vector2 wHiteRabbiT.Unity.Math.Maths.PointOnRect ( float  w,
float  h,
Vector2  dir 
)
static
static Vector2 wHiteRabbiT.Unity.Math.Maths.PointOnRect ( float  w,
float  h,
float  angle 
)
static

The documentation for this class was generated from the following file: