← Back to carmenta.com
Carmenta Engine SDK Documentation
×

LineGeometry.NearestPoint Method

Returns the point along the LineGeometry that is closest to the specified Point.

Thread safety: This method is not thread-safe. Show

NearestPoint(Point point)

Returns the point along the LineGeometry that is closest to the specified Point.

Syntax

C#
public Point NearestPoint (
    Point point
)

Parameters

point
Type: Point
The point to find the nearest point for.

Return Value

Type: Point
The point along the line that is closest to point.

Remarks

Note

This method operates on 2D geometries and all z-coordinate values are ignored.

Platforms

Windows, Linux, Android

By accessing the information on this site you accept our terms and conditions and privacy policy.
This site uses cookies to enhance your experience and provide additional functionality.

Accept