示例#1
0
        // Token: 0x06000363 RID: 867 RVA: 0x0000E930 File Offset: 0x0000CB30
        public static ICollection <Vector3> IntersectionPointsWith(this Line3 line, Cylinder3 cylinder)
        {
            Segment3?segment = line.IntersectionWith(cylinder);

            if (segment == null)
            {
                return(new List <Vector3>());
            }
            Segment3 value = segment.Value;

            if (value.Extent < 1E-08)
            {
                return(new List <Vector3>
                {
                    value.Origin
                });
            }
            return(new List <Vector3>
            {
                value.NegativeEnd,
                value.PositiveEnd
            });
        }
示例#2
0
        // Token: 0x0600036B RID: 875 RVA: 0x0000EBB4 File Offset: 0x0000CDB4
        public static ICollection <Vector3> IntersectionPointsWith(this Line3 line, AxisAlignedBox3 axisAlignedBox)
        {
            Box3     box     = new Box3(axisAlignedBox.Center, UnitVector3.UnitX, UnitVector3.UnitY, UnitVector3.UnitZ, axisAlignedBox.ExtentX, axisAlignedBox.ExtentY, axisAlignedBox.ExtentZ);
            Segment3?segment = line.IntersectionWith(box);

            if (segment == null)
            {
                return(new List <Vector3>());
            }
            Segment3 value = segment.Value;

            if (value.Extent < 1E-08)
            {
                return(new List <Vector3>
                {
                    value.Origin
                });
            }
            return(new List <Vector3>
            {
                value.NegativeEnd,
                value.PositiveEnd
            });
        }
示例#3
0
 // Token: 0x0600032D RID: 813 RVA: 0x0000D136 File Offset: 0x0000B336
 public static Segment3?IntersectionWith(this Box3 box3, Line3 line3)
 {
     return(line3.IntersectionWith(box3));
 }
示例#4
0
 // Token: 0x0600039D RID: 925 RVA: 0x0000FD37 File Offset: 0x0000DF37
 public static Vector3?IntersectionWith(this Plane3 plane, Line3 line)
 {
     return(line.IntersectionWith(plane));
 }
 // Token: 0x06000311 RID: 785 RVA: 0x0000C836 File Offset: 0x0000AA36
 public static Segment3?IntersectionWith(this AxisAlignedBox3 axisAlignedBox3, Line3 line3)
 {
     return(line3.IntersectionWith(axisAlignedBox3));
 }
示例#6
0
 // Token: 0x06000272 RID: 626 RVA: 0x0000A606 File Offset: 0x00008806
 public static Segment3?IntersectionWith(this Cylinder3 cylinder, Line3 line)
 {
     return(line.IntersectionWith(cylinder));
 }
 // Token: 0x0600044C RID: 1100 RVA: 0x00013977 File Offset: 0x00011B77
 public static Vector3?IntersectionWith(this Triangle3 triangle, Line3 line)
 {
     return(line.IntersectionWith(triangle));
 }