# closestPointFromPointToSegment

`closestPointFromPointToSegment`()
  closestPointFromPointToSegment(p0: `Point3`, p1: `Point3`, point: `Point3`): `Point3`

  Finds the closest point on line segment p0-p1 to the given point. The closest point will always lie on or between the line segment endpoints.

  Parameters

  > p0: `Point3`

  > > First point of the line segment

  > p1: `Point3`

  > > Second point of the line segment

  > point: `Point3`

  > > Point at which to find closest line segment point.

  Returns: `Point3`

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize Web or choose a sample question below to start a conversation:

What is HOOPS Visualize Web?
What are the latest release notes for HOOPS Visualize Web?
How do I start evaluating HOOPS Visualize Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...