ndc_to_screen
Transforms an NDC point (x,y,z) into screen pixel coordinates based on given width, height, and optional y-direction (down/up).
Instructions
Scales normalized device coordinates to a 2D screen resolution
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| ndcPoint | Yes | NDC point, normally x and y in -1..1 | |
| yDirection | No | Use down for top-left screen origin (default), or up for bottom-left origin |