MathKit
Toggle table of contents
2.0.0
common
Target filter
common
Switch theme
Search in API
Skip to content
MathKit
MathKit
/
com.sztorm.mathkit
/
Vector2F
/
Companion
/
closestPointOnLineSegment
closest
Point
On
Line
Segment
@
JvmStatic
fun
closestPointOnLineSegment
(
a
:
Vector2F
,
b
:
Vector2F
,
point
:
Vector2F
)
:
Vector2F
Returns the closest point to the
point
on a line segment composed of the
a
and
b
points.