示例#1
0
 public GePlane(PlaneAdaptor proxy)
 {
     m_Proxy = proxy;
 }
 public override PointAdaptor GetIntersection(PlaneAdaptor planeProxy)
 {
     Debug.Assert(false, "NO IMP");
     return null;
 }
示例#3
0
 public GePlane(GePoint point, UnitVector Normal)
 {
     Debug.Assert(point != null && Normal != null);
     m_Proxy = MathAdaptorFactory.Instance.CreatePlaneAdaptor(point._Proxy, Normal._Proxy);
 }
示例#4
0
        public bool IsOn(PlaneAdaptor Plane)
        {
            if (null == Plane) return false;

            return Plane.Contains(this);
        }
示例#5
0
        // The shortest distance of point to plane.
        public double DistanceTo(PlaneAdaptor planeProxy)
        {
            Debug.Assert(planeProxy != null);

            return planeProxy.DistanceTo(this);
        }
示例#6
0
        public bool IsParallelTo(PlaneAdaptor Plane)
        {
            if (null == Plane) return false;

            return (Direction.IsPerpendicularTo(Plane.Normal));
        }
示例#7
0
 public abstract PointAdaptor GetIntersection(PlaneAdaptor planeProxy);
示例#8
0
        // 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;
            }
        }