openrndr
0.4.5-dev.4.uncommitted+98ebace
common
openrndr-shape
/
org.openrndr.shape
/
LineSegment
/
nearest
nearest
fun
nearest
(
query
:
Vector2
)
:
Vector2
(
source
)
Finds point on the
LineSegment
that is nearest to the given point.
Parameters
query
The query point.