Example #1
0
        public DoublePoint3D VecMultiply(DoublePoint3D vector)
        {
            var x = Y * vector.Z - vector.Y * Z;
            var y = x * vector.Z - vector.X * Z;
            var z = X * vector.Y - vector.X * Y;

            return(new DoublePoint3D(x, y, z));
        }
Example #2
0
 public double ScalMultiply(DoublePoint3D vector)
 {
     return(X * vector.X + Y * vector.Y + Z * vector.Z);
 }