Пример #1
0
        // Token: 0x0600027C RID: 636 RVA: 0x0000A714 File Offset: 0x00008914
        public ICollection <Vector3> Find()
        {
            List <Vector3>            list = new List <Vector3>();
            IntersectionPlane3Circle3 intersectionPlane3Circle = new IntersectionPlane3Circle3(this.plane, this.arc.Circle);

            foreach (Vector3 vector in intersectionPlane3Circle.Find())
            {
                Angle pointDirectionAngle = this.arc.Circle.GetPointDirectionAngle(vector);
                if (this.arc.Contains(pointDirectionAngle))
                {
                    list.Add(vector);
                }
            }
            return(list);
        }
Пример #2
0
        // Token: 0x0600027B RID: 635 RVA: 0x0000A668 File Offset: 0x00008868
        public bool Test()
        {
            IntersectionPlane3Circle3 intersectionPlane3Circle = new IntersectionPlane3Circle3(this.plane, this.arc.Circle);

            if (!intersectionPlane3Circle.Test())
            {
                return(false);
            }
            ICollection <Vector3> collection = intersectionPlane3Circle.Find();

            if (collection.Count == 0)
            {
                return(true);
            }
            foreach (Vector3 point in collection)
            {
                Angle pointDirectionAngle = this.arc.Circle.GetPointDirectionAngle(point);
                if (this.arc.Contains(pointDirectionAngle))
                {
                    return(true);
                }
            }
            return(false);
        }
Пример #3
0
        // Token: 0x06000390 RID: 912 RVA: 0x0000FA68 File Offset: 0x0000DC68
        public static ICollection <Vector3> IntersectionPointsWith(this Plane3 plane, Circle3 circle)
        {
            IntersectionPlane3Circle3 intersectionPlane3Circle = new IntersectionPlane3Circle3(plane, circle);

            return(new List <Vector3>(intersectionPlane3Circle.Find()));
        }