예제 #1
0
        public static IVector3D CreateUnitVector(IVector3D toVector, IVector3D fromVector)
        {
            IVector3D vector = IVector3D.Sub(toVector, fromVector);

            vector.Norm();
            return(vector);
        }
예제 #2
0
 public static IVector3D CreateVector(IVector3D toVector, IVector3D fromVector)
 {
     return(IVector3D.Sub(toVector, fromVector));
 }
예제 #3
0
        public static double Dist(IVector3D vector1, IVector3D vector2)
        {
            IVector3D vec = IVector3D.Sub(vector1, vector2);

            return(vec.Mag());
        }