look_at_view_matrix
Compute a world-to-view matrix from camera position, target, and up vector, supporting right- or left-handed coordinate systems.
Instructions
Creates a row-major look-at world-to-view matrix for a right- or left-handed coordinate system
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"eye": "<eye>",
"target": "<target>",
"up": "<up>"
},
"name": "look_at_view_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| up | Yes | Approximate camera-up direction | |
| eye | Yes | Camera world position | |
| target | Yes | World position the camera looks toward | |
| handedness | No | Defaults to right-handed, where the camera looks down negative view-space Z |