Return the point of intersection between two lines (only for polygons with 2 vertices)
Namespace:
BrydenWoodUnity.GeometryManipulation
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic bool Intersects(
Polygon other,
out Vector3 intersectionPoint,
bool extend = false
)
Public Function Intersects (
other As Polygon,
<OutAttribute> ByRef intersectionPoint As Vector3,
Optional extend As Boolean = false
) As Boolean
public:
bool Intersects(
Polygon^ other,
[OutAttribute] Vector3% intersectionPoint,
bool extend = false
)
member Intersects :
other : Polygon *
intersectionPoint : Vector3 byref *
?extend : bool
(* Defaults:
let _extend = defaultArg extend false
*)
-> bool
Parameters
- other
- Type: BrydenWoodUnity.GeometryManipulationPolygon
The polygon to check against - intersectionPoint
- Type: Vector3
the point of intersection - extend (Optional)
- Type: SystemBoolean
Whether the lines should be extended to their intersection points
Return Value
Type:
BooleanWhether the lines intersect or not
See Also