Exemplo n.º 1
0
 public void SetCameraByPoints(XYZPoint o, XYZPoint i, XYZPoint j, XYZPoint k)
 {
     pos  = new Vector(o);
     view = new Vector(o, i);
     hor  = new Vector(o, j);
     vert = new Vector(o, k);
 }
Exemplo n.º 2
0
        public XYZVector UnitVector()
        {
            XYZPoint total    = A.VectorTo(B);
            double   distance = A.DistanceTo(B);
            double   x        = total.x / distance;
            double   y        = total.y / distance;
            double   z        = total.z / distance;

            return(new XYZVector(x, y, z));
        }
Exemplo n.º 3
0
 public XYZLine(XYZPoint a, XYZPoint b)
 {
     A = a;
     B = b;
 }