Exemplo n.º 1
0
 public Vector3D(double length, double cornerX, double cornerY, double cornerZ)
 {
     Length = length;
     CornerX = cornerX;
     CornerY = cornerY;
     CornerZ = cornerZ;
     Coordinate3D = new Coordinate3D(Math.Cos(CornerX)*Length, Math.Cos(CornerY)*Length, Math.Cos(CornerZ)*Length);
 }
Exemplo n.º 2
0
        public Vector3D(Coordinate3D coordinate3D)
        {
            Coordinate3D = coordinate3D;
            Length = Math.Sqrt(Math.Pow(Coordinate3D.X, 2) + Math.Pow(Coordinate3D.Y, 2) + Math.Pow(Coordinate3D.Z, 2));

            CornerX = Math.Acos(Coordinate3D.X/Length);
            CornerY = Math.Acos(Coordinate3D.Y/Length);
            CornerZ = Math.Acos(Coordinate3D.Z/Length);
        }