Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
        // Token: 0x0600038F RID: 911 RVA: 0x0000FA48 File Offset: 0x0000DC48
        public static bool Intersects(this Plane3 plane, Circle3 circle)
        {
            IntersectionPlane3Circle3 intersectionPlane3Circle = new IntersectionPlane3Circle3(plane, circle);

            return(intersectionPlane3Circle.Test());
        }