コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="point"></param>
        /// <param name="direction"></param>
        /// <returns></returns>
        public Point Project(Point point, Vector direction)
        {
            if (point == null || direction == null || direction.IsZeroVector())
            {
                return(null);
            }

            IPointEntity projectedPt = PlaneEntity.Project(point.PointEntity, direction.IVector);

            if (null == projectedPt)
            {
                return(null);
            }
            return(projectedPt.ToPoint(true, this));
        }
コード例 #2
0
 internal override IPointEntity ClosestPointTo(IPointEntity otherPoint)
 {
     return(PlaneEntity.Project(otherPoint, Normal.IVector));
 }