// Token: 0x0600036D RID: 877 RVA: 0x0000EC78 File Offset: 0x0000CE78 public static Vector3?IntersectionWith(this Line3 line, Plane3 plane) { IntersectionLine3Plane3 intersectionLine3Plane = new IntersectionLine3Plane3(line, plane); if (intersectionLine3Plane.Find() && intersectionLine3Plane.IntersectionType != Intersection.Type.IT_EMPTY) { return(new Vector3?(line.Origin + intersectionLine3Plane.LineParameter * line.Direction)); } return(null); }
// Token: 0x060003DB RID: 987 RVA: 0x00011638 File Offset: 0x0000F838 public bool Find() { Line3 line = new Line3(this.ray.Origin, this.ray.Direction); IntersectionLine3Plane3 intersectionLine3Plane = new IntersectionLine3Plane3(line, this.plane); if (intersectionLine3Plane.Find()) { this.IntersectionType = intersectionLine3Plane.IntersectionType; this.RayParameter = intersectionLine3Plane.LineParameter; return(this.RayParameter >= 0.0); } this.IntersectionType = Intersection.Type.IT_EMPTY; return(false); }
// Token: 0x06000426 RID: 1062 RVA: 0x00012C9C File Offset: 0x00010E9C public bool Find() { Line3 line = new Line3(this.segment.Origin, this.segment.Direction); IntersectionLine3Plane3 intersectionLine3Plane = new IntersectionLine3Plane3(line, this.plane); if (intersectionLine3Plane.Find()) { this.IntersectionType = intersectionLine3Plane.IntersectionType; this.SegmentParameter = intersectionLine3Plane.LineParameter; return(Math.Abs(this.SegmentParameter) < this.segment.Extent + 1E-08); } this.IntersectionType = Intersection.Type.IT_EMPTY; return(false); }
// Token: 0x0600036C RID: 876 RVA: 0x0000EC58 File Offset: 0x0000CE58 public static bool Intersects(this Line3 line, Plane3 plane) { IntersectionLine3Plane3 intersectionLine3Plane = new IntersectionLine3Plane3(line, plane); return(intersectionLine3Plane.Test()); }