// Token: 0x060003BC RID: 956 RVA: 0x00010B24 File Offset: 0x0000ED24 public static Segment3?IntersectionWith(this Ray3 ray, Cylinder3 cylinder) { IntersectionRay3Cylinder3 intersectionRay3Cylinder = new IntersectionRay3Cylinder3(ray, cylinder); intersectionRay3Cylinder.Find(); if (intersectionRay3Cylinder.IntersectionType == Intersection.Type.IT_SEGMENT) { return(new Segment3?(new Segment3(intersectionRay3Cylinder.Point0, intersectionRay3Cylinder.Point1))); } if (intersectionRay3Cylinder.IntersectionType == Intersection.Type.IT_POINT) { return(new Segment3?(new Segment3(intersectionRay3Cylinder.Point0, intersectionRay3Cylinder.Point0))); } return(null); }
// Token: 0x060003BB RID: 955 RVA: 0x00010B04 File Offset: 0x0000ED04 public static bool Intersects(this Ray3 ray, Cylinder3 cylinder) { IntersectionRay3Cylinder3 intersectionRay3Cylinder = new IntersectionRay3Cylinder3(ray, cylinder); return(intersectionRay3Cylinder.Find()); }