public GePlane(PlaneAdaptor proxy) { m_Proxy = proxy; }
public override PointAdaptor GetIntersection(PlaneAdaptor planeProxy) { Debug.Assert(false, "NO IMP"); return null; }
public GePlane(GePoint point, UnitVector Normal) { Debug.Assert(point != null && Normal != null); m_Proxy = MathAdaptorFactory.Instance.CreatePlaneAdaptor(point._Proxy, Normal._Proxy); }
public bool IsOn(PlaneAdaptor Plane) { if (null == Plane) return false; return Plane.Contains(this); }
// The shortest distance of point to plane. public double DistanceTo(PlaneAdaptor planeProxy) { Debug.Assert(planeProxy != null); return planeProxy.DistanceTo(this); }
public bool IsParallelTo(PlaneAdaptor Plane) { if (null == Plane) return false; return (Direction.IsPerpendicularTo(Plane.Normal)); }
public abstract PointAdaptor GetIntersection(PlaneAdaptor planeProxy);
// The shortest distance of line to plane. public double DistanceTo(PlaneAdaptor plane) { Debug.Assert(plane != null); if (!IsParallelTo(plane)) return 0.0; else { double distance = BasePoint.DistanceTo(plane); return distance; } }