[This is preliminary documentation and is subject to change.]

The Line2 type exposes the following methods.

Methods

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

 MemberDescription
GetNormalAB(Vector2, Vector2)
Returns the normalized vector that is perpendicular to line AB. (Costly method!)
GetPointLineDistanceSq(Vector2, Vector2, Vector2)
Returns the distance squared from point P to the nearest point on line AB.
GetPointSegmentDistanceSq(Vector2, Vector2, Vector2)
Returns the distance squared from point P to the nearest point on line segment AB.
GetRelationship(Vector2, Vector2, Vector2, Vector2, Vector2%)
Determines the relationship between lines AB and CD.
LinesIntersect(Vector2, Vector2, Vector2, Vector2)
Indicates whether or not line AB intersects line BC.
LinesIntersect(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Indicates whether or not line AB intersects line BC. (Integer version.)

See Also