|
static bool | LineIntersection (Line2D l0, Line2D l1, out float2 intersection, float epsilon=10e-5f) |
| Intersects two lines in 2D Space.
|
|
static bool | LineIntersection (Line3D l0, Line3D l1, out float3 intersection, float mergeDistance=10e-5f, float epsilon=10e-5f) |
| Intersects two lines in 3D Space.
|
|
static bool | LineLineSegmentIntersection (Line2D l0, LineSegment2D l1, out float2 intersection, float epsilon=10e-5f) |
| Intersects a 2D line with a 2D line segment.
|
|
static int | LineRectangleIntersections (Line2D line, Rect rect, out float2 intersection0, out float2 intersection1, float epsilon=10e-5f) |
| Intersects a line with a rectangle. There are 0, 1 or 2 possible points the line can cross. The number of intersections is returned. If the number is 1, only the first intersection point returned is valid (the second one will contain invalid data).
|
|
static int | LineSegmentCircleIntersections (LineSegment2D line, float2 center, float radiusSq, out float2 intersection0, out float2 intersection1, out bool inside) |
| Intersects a line segment with a circle. There are 0, 1 or 2 possible points they cross. The number of intersections is returned. If the number is 1, only the first intersection point returned is valid (the second one will contain invalid data).
|
|
static int | LineSegmentCuboidIntersections (LineSegment3D line, Bounds bounds, out float3 intersection0, out float3 intersection1, out bool inside, float epsilon=10e-7f) |
| Returns the intersections between a line segment and a box / cuboid. The number of intersections may be 0, 1 or 2. If the line segment is completely contained inside the box, inside is set to true.
|
|
static bool | LineSegmentIntersection (LineSegment2D s0, LineSegment2D s1, out float2 intersection) |
| Intersects two line segments with each other. If they are parallel, false is returned and the intersection is invalid (NaN).
|
|
static int | LineSegmentRectangleIntersections (LineSegment2D line, Rect rect, out float2 intersection0, out float2 intersection1, out bool inside, float epsilon=10e-5f) |
| Intersects a line segment with a rectangle. There are 0, 1 or 2 possible points the line can cross. The number of intersections is returned. If the number is 1, only the first intersection point returned is valid (the second one will contain invalid data).
|
|
static int | LineSegmentSphereIntersections (LineSegment3D line, float3 center, float radiusSq, out float3 intersection0, out float3 intersection1, out bool inside) |
| Intersects a line segment with a sphere. There are 0, 1 or 2 possible points they cross. The number of intersections is returned. If the number of intersections is 1, only the first intersection point returned is valid (the second one will contain invalid data).
|
|
static bool | LineSegmentTriangleIntersection (LineSegment3D ls, NativeTriangle3D triangle, out float3 intersection, float epsilon=10e-7f) |
| Intersects a line segment with a triangle. If they do not intersect, false is returned. Otherwise, true is returned and the out parameter intersection holds the position where.
|
|
static FixedList128Bytes< float3 > | PlaneCuboidIntersections (Plane p0, Bounds bounds, float epsilon=10e-7f) |
| Intersects a Cuboid with a 3D Plane.
|
|
static bool | PlaneIntersection (Plane p0, Plane p1, out Line3D intersectionLine, float mergeDistance=10e-5f, float epsilon=10e-5f) |
| Intersects two 3D Planes. The result is a 3D Line.
|
|
static bool | PlaneLineIntersection (Plane p0, Line3D l0, out float3 intersection, float epsilon=10e-5f) |
| Intersects a 3D Plane with a 3D Line, resulting in an intersection point.
|
|
static bool | PlaneLineSegmentIntersection (Plane p0, LineSegment3D l0, out float3 intersection, float epsilon=10e-5f) |
| Calculates the intersection between a line segment and a plane. False is returned if they do not intersect.
|
|