Exemple #1
0
        // Token: 0x06000365 RID: 869 RVA: 0x0000E9C0 File Offset: 0x0000CBC0
        public static ICollection <Vector3> IntersectionPointsWith(this Line3 line, Torus3 torus)
        {
            List <Vector3>          list = new List <Vector3>();
            IntersectionLine3Torus3 intersectionLine3Torus = new IntersectionLine3Torus3(line, torus);

            if (intersectionLine3Torus.Find())
            {
                Vector3[] array = new Vector3[]
                {
                    intersectionLine3Torus.Point0,
                    intersectionLine3Torus.Point1,
                    intersectionLine3Torus.Point2,
                    intersectionLine3Torus.Point3
                };
                for (int i = 0; i < intersectionLine3Torus.Quantity; i++)
                {
                    list.Add(array[i]);
                }
            }
            return(list);
        }
Exemple #2
0
        // Token: 0x06000364 RID: 868 RVA: 0x0000E9A0 File Offset: 0x0000CBA0
        public static bool Intersects(this Line3 line, Torus3 torus)
        {
            IntersectionLine3Torus3 intersectionLine3Torus = new IntersectionLine3Torus3(line, torus);

            return(intersectionLine3Torus.Find());
        }