Example #1
0
        // Token: 0x060003BF RID: 959 RVA: 0x00010C24 File Offset: 0x0000EE24
        public static ICollection <Vector3> IntersectionPointsWith(this Ray3 ray, Torus3 torus)
        {
            List <Vector3>         list = new List <Vector3>();
            IntersectionRay3Torus3 intersectionRay3Torus = new IntersectionRay3Torus3(ray, torus);

            if (intersectionRay3Torus.Find())
            {
                Vector3[] array = new Vector3[]
                {
                    intersectionRay3Torus.Point0,
                    intersectionRay3Torus.Point1,
                    intersectionRay3Torus.Point2,
                    intersectionRay3Torus.Point3
                };
                for (int i = 0; i < intersectionRay3Torus.Quantity; i++)
                {
                    list.Add(array[i]);
                }
            }
            return(list);
        }
Example #2
0
        // Token: 0x060003BE RID: 958 RVA: 0x00010C04 File Offset: 0x0000EE04
        public static bool Intersects(this Ray3 ray, Torus3 torus)
        {
            IntersectionRay3Torus3 intersectionRay3Torus = new IntersectionRay3Torus3(ray, torus);

            return(intersectionRay3Torus.Find());
        }