public Vector3D NearestAxis() { Vector3D b = Zero.Clone(); double xabs = Math.Abs(X); double yabs = Math.Abs(Y); double zabs = Math.Abs(Z); if (xabs >= yabs && xabs >= zabs) { b.X = (X > 0.0) ? 1.0 : -1.0; } else if (yabs >= zabs) { b.Y = (Y > 0.0) ? 1.0 : -1.0; } else { b.Z = (Z > 0.0) ? 1.0 : -1.0; } return(b); }
public Line3D(Point3D p, Vector3D v) { _point = p.Clone(); _vector = v.Clone(); }
public Line3D(Point3D p, Vector3D v) { _point = p.Clone(); _vector = v.Clone(); }
public Line3D(Point3D p, Vector3D v) { Point = p.Clone(); Vector = v.Clone(); }