Example #1
0
 public bool isVertical(sg_Vector3 v)
 {
     if (isZero() || v.isZero())
     {
         return(false);
     }
     return(dotMul(v) == 0);
 }
Example #2
0
 public static double getAngle(sg_Vector3 v)
 {
     if (v.isZero())
     {
         return(-99999);
     }
     return(sg_math.ArcToAngle(Math.Acos(v.z / v.length)));
 }
Example #3
0
        public bool isParallel(sg_Vector3 v)
        {
            if (isZero() || v.isZero())
            {
                return(false);
            }
            sg_Vector3 newv = this.crossMul(v);

            return(newv.isZero());
        }