Skip to content

leodeg/CSharp.MathLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Resources

Leo Math Library

  • LeoMath
    • Abs
    • Sqrt
    • Clamp a value between min and max values

Vectors

  • Vector2 and Vector3
    • Basic vectors operations
    • Dot product of vectors
    • Magnitude of vector
    • Normalize vector (unit vector)
    • Distance between vectors
    • Direction between vectors
    • Angle between vectors (degrees and radians)
    • Projection and Rejection one vector onto another
  • Vector2
    • Look at target position
    • Rotate vector
    • Translate vector
  • Vector3
    • Cross product of vectors
    • Look at target position
    • Rotate vector
    • Translate vector
  • Vector4
    • Basic vectors operations
    • Dot product of vectors
    • Magnitude of vector
    • Normalize vector (unit vector)

Matrices

  • Matrice2, Matrice3 and Matrice4
    • Basic operations
    • Determinant of matrix
    • Transpose matrix
    • Check is diagonal
    • Check is symmetric
    • Check is skew-symmetric
  • Matrice3
    • Inverse matrix
  • Matrice4
    • Determinant of matrix
    • Inverse matrix

Geometry

  • Plane
    • Linear interpolation
  • Line
    • Linear interpolation
    • Reflect
    • Intersect at another line

Quaternion

  • Inverse
  • Normalize
  • Look at target
  • Linear interpolation
  • Convert to Angle axis
  • Angle between two rotations
  • Spherical linear interpolation