LineToolsLineSegmentVerticesIntersect Method |
Get all intersections between a line segment and a list of vertices
representing a polygon. The vertices reuse adjacent points, so for example
edges one and two are between the first and second vertices and between the
second and third vertices. The last edge is between vertex vertices.Count - 1
and verts0. (ie, vertices from a Geometry or AABB)
Namespace: Internal.tainicom.Aether.Physics2D.CommonAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic static Vertices LineSegmentVerticesIntersect(
ref Vector2 point1,
ref Vector2 point2,
Vertices vertices
)
Parameters
- point1 Vector2
- The first point of the line segment to test
- point2 Vector2
- The second point of the line segment to test.
- vertices Vertices
- The vertices, as described above
Return Value
Vertices
See Also