Click or drag to resize

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.Common
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static Vertices LineSegmentVerticesIntersect(
	ref Vector2 point1,
	ref Vector2 point2,
	Vertices vertices
)

Parameters

point1
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
The first point of the line segment to test
point2
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
The second point of the line segment to test.
vertices
Type: Internal.tainicom.Aether.Physics2D.CommonVertices
The vertices, as described above

Return Value

Type: Vertices
See Also