コード例 #1
0
        public static bool IsOnLine(this Line3D l, Point3D p)
        {
            var closest = l.ClosestPointTo(p, true);
            var ret     = (closest.Equals(p, SpeckleStructuralClasses.Helper.PointComparisonEpsilon));

            return(ret);
        }
コード例 #2
0
        public static bool IsOnLine(this Line3D l, Point3D p)
        {
            var closest = l.ClosestPointTo(p, true);
            var ret     = (closest.Equals(p, 0.001));

            return(ret);
        }