/// <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)); }
internal override IPointEntity ClosestPointTo(IPointEntity otherPoint) { return(PlaneEntity.Project(otherPoint, Normal.IVector)); }