TwoDPointToLineDistance2 Method |
Calculates distances from line to each of 2 points.
Namespace:
TouchScript.Utils.Geom
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static void PointToLineDistance2(
Vector2 lineStart,
Vector2 lineEnd,
Vector2 point1,
Vector2 point2,
out float dist1,
out float dist2
)
Parameters
- lineStart
- Type: Vector2
Line "starting" point. - lineEnd
- Type: Vector2
Line "ending" point. - point1
- Type: Vector2
Point to calculate the distance to. - point2
- Type: Vector2
Point to calculate the distance to. - dist1
- Type: SystemSingle
Contains returned distance from line to the first point. - dist2
- Type: SystemSingle
Contains returned distance from line to the second point.
See Also