Esempio n. 1
0
 public static float Dot(Vec4 u, Vec4 v)
 {
     return(u.x * v.x + u.y * v.y + u.z * v.z + u.w * v.w);
 }
Esempio n. 2
0
 public static float Sqr(Vec4 v)
 {
     return(v.x * v.x + v.y * v.y + v.z * v.z + v.w * v.w);
 }
Esempio n. 3
0
        //public static implicit operator string(Vec4 v)
        //{
        //    return Convert.ToString(v.x) + ", " + Convert.ToString(v.y) + ", " + Convert.ToString(v.z) + ", " + Convert.ToString(v.w);
        //}

        private bool Eq(Vec4 other)
        {
            return(x == other.x && y == other.y && z == other.z && w == other.w);
        }