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

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

            return planeProxy.DistanceTo(this);
        }
Exemplo n.º 6
0
        public bool IsParallelTo(PlaneAdaptor Plane)
        {
            if (null == Plane) return false;

            return (Direction.IsPerpendicularTo(Plane.Normal));
        }
Exemplo n.º 7
0
 public abstract PointAdaptor GetIntersection(PlaneAdaptor planeProxy);
Exemplo n.º 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;
            }
        }