Exemple #1
0
 public bool Equals(Mat4 other)
 {
     return(this == other);
 }
Exemple #2
0
 /// <summary>Transform a Vec3 by the given Matrix, and project the resulting Vec4 back to a Vec3</summary>
 /// <param name="vec">The vector to transform</param>
 /// <param name="mat">The desired transformation</param>
 /// <returns>The transformed vector</returns>
 public static Vec3 TransformPerspective(Vec3 vec, Mat4 mat)
 {
     return(vec.ToVec4().Mul(mat).ClipDivided());
 }
Exemple #3
0
 public Mat4 Mul(Mat4 b)
 {
     this = this * b;
     return(this);
 }