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); }
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)); }
public XYZLine(XYZPoint a, XYZPoint b) { A = a; B = b; }