Megadocs 0.0.1
All of megapop's internal libraries
Megapop.MegaCore.Math3D Class Reference

Static Public Member Functions

static Vector3 Average (IList< Vector3 > points)
 
static Bounds BoundingBox (IList< Vector3 > points)
 
static float Angle (Vector3 a, Vector3 b)
 
static float AngleSigned (Vector3 a, Vector3 b, Vector3 normal)
 
static Vector3 RotateAround (Vector3 point, Vector3 origin, Quaternion rotation)
 
static Vector3 NormalizedDirection (Vector3 start, Vector3 end)
 Calculate the normalized direction from start towards end. More...
 
static bool Approximately (Vector3 v1, Vector3 v2)
 Return true if v1 and v2 are equal, or different but very close. TODO: Better implementation More...
 

Member Function Documentation

◆ Angle()

static float Megapop.MegaCore.Math3D.Angle ( Vector3  a,
Vector3  b 
)
inlinestatic

◆ AngleSigned()

static float Megapop.MegaCore.Math3D.AngleSigned ( Vector3  a,
Vector3  b,
Vector3  normal 
)
inlinestatic

◆ Approximately()

static bool Megapop.MegaCore.Math3D.Approximately ( Vector3  v1,
Vector3  v2 
)
inlinestatic

Return true if v1 and v2 are equal, or different but very close. TODO: Better implementation

◆ Average()

static Vector3 Megapop.MegaCore.Math3D.Average ( IList< Vector3 >  points)
inlinestatic

◆ BoundingBox()

static Bounds Megapop.MegaCore.Math3D.BoundingBox ( IList< Vector3 >  points)
inlinestatic

◆ NormalizedDirection()

static Vector3 Megapop.MegaCore.Math3D.NormalizedDirection ( Vector3  start,
Vector3  end 
)
inlinestatic

Calculate the normalized direction from start towards end.

◆ RotateAround()

static Vector3 Megapop.MegaCore.Math3D.RotateAround ( Vector3  point,
Vector3  origin,
Quaternion  rotation 
)
inlinestatic

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