Exemple #1
0
        // Token: 0x0600040A RID: 1034 RVA: 0x0001228C File Offset: 0x0001048C
        public static Segment3?IntersectionWith(this Segment3 segment, Cylinder3 cylinder)
        {
            IntersectionSegment3Cylinder3 intersectionSegment3Cylinder = new IntersectionSegment3Cylinder3(segment, cylinder);

            intersectionSegment3Cylinder.Find();
            if (intersectionSegment3Cylinder.IntersectionType == Intersection.Type.IT_SEGMENT)
            {
                return(new Segment3?(new Segment3(intersectionSegment3Cylinder.Point0, intersectionSegment3Cylinder.Point1)));
            }
            if (intersectionSegment3Cylinder.IntersectionType == Intersection.Type.IT_POINT)
            {
                return(new Segment3?(new Segment3(intersectionSegment3Cylinder.Point0, intersectionSegment3Cylinder.Point0)));
            }
            return(null);
        }
Exemple #2
0
        // Token: 0x06000409 RID: 1033 RVA: 0x0001226C File Offset: 0x0001046C
        public static bool Intersects(this Segment3 segment, Cylinder3 cylinder)
        {
            IntersectionSegment3Cylinder3 intersectionSegment3Cylinder = new IntersectionSegment3Cylinder3(segment, cylinder);

            return(intersectionSegment3Cylinder.Find());
        }