> ## Documentation Index
> Fetch the complete documentation index at: https://luas.getconstant.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# Camera

## WorldToViewportPoint

```lua theme={"dark"}
Camera.WorldToViewportPoint(vector3: Position, boolean?: ToEdges, number?: EdgeOffset)
```

<ParamField path="Position" type="vector3" required>
  The world position to project.
</ParamField>

<ParamField path="ToEdges" type="boolean">
  Clamps the projected position to screen bounds, in return the projected position will always be OnScreen.
</ParamField>

<ParamField path="EdgeOffset" type="number">
  The offset between the clamped projection and the edge of the screen. Required when using ToEdges. Set this to the width (in pixels) of your element for the best result.
</ParamField>
