public bool Equals(Mat4 other) { return(this == other); }
/// <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()); }
public Mat4 Mul(Mat4 b) { this = this * b; return(this); }