コード例 #1
0
 public VectorAdaptor CreateVectorAdaptor(PointAdaptor sp, PointAdaptor ep)
 {
     if (null == sp || null == ep)
     {
         return null;
     }
     else
     {
         return CreateVectorAdaptor(ep.X - sp.X
         , ep.Y - sp.Y, ep.Z - sp.Z);
     }
 }
コード例 #2
0
        public NativeLineAdaptor(PointAdaptor point, UnitVectorAdaptor direction)
        {
            if (point != null)
                m_Point = point.Clone();
            else
                m_Point = new NativePointAdaptor();

            if (direction != null)
            {
                m_Direction = direction.Clone();
            }
            else
                m_Direction = new UnitVectorAdaptor(1,0,0);
        }
コード例 #3
0
        public NativeLineAdaptor(PointAdaptor sp, PointAdaptor ep)
        {
            if (sp != null)
                m_Point = sp.Clone();
            else
                m_Point = new NativePointAdaptor();

            if (ep != null && !m_Point.IsEqualTo(ep))
            {
                VectorAdaptor direction = (ep - m_Point);

                m_Direction = direction.UnitVectorAdaptor;
            }
            else
                m_Direction = new UnitVectorAdaptor(1, 0, 0);
        }
コード例 #4
0
 public override PlaneAdaptor CreatePlaneAdaptor(PointAdaptor point, UnitVectorAdaptor Normal)
 {
     return new MathLibPlaneAdaptor();
 }
コード例 #5
0
 public override LineAdaptor CreateLineAdaptor(PointAdaptor point, UnitVectorAdaptor direction)
 {
     return new MathLibLineAdaptor();
 }
コード例 #6
0
 public abstract PlaneAdaptor CreatePlaneAdaptor(PointAdaptor point, UnitVectorAdaptor Normal);
コード例 #7
0
 public abstract LineAdaptor CreateLineAdaptor(PointAdaptor point, UnitVectorAdaptor direction);
コード例 #8
0
 public override PlaneAdaptor CreatePlaneAdaptor(PointAdaptor point, UnitVectorAdaptor Normal)
 {
     return new NativePlaneAdaptor(point, Normal);
 }
コード例 #9
0
 public override LineAdaptor CreateLineAdaptor(PointAdaptor point, UnitVectorAdaptor direction)
 {
     return new NativeLineAdaptor(point, direction);
 }