Return a direction vector from the viewport at the specific 2d region coordinate.
Parameters: |
|
---|---|
Returns: | normalized 3d vector. |
Return type: |
Return the 3d view origin from the region relative 2d coords.
Note
Orthographic views have a less obvious origin, the far clip is used to define the viewport near/far extents. Since far clip can be a very large value, the result may give with numeric precision issues.
To avoid this problem, you can optionally clamp the far clip to a smaller value based on the data you’re operating on.
Parameters: |
|
---|---|
Returns: | The origin of the viewpoint in 3d space. |
Return type: |
Return a 3d location from the region relative 2d coords, aligned with depth_location.
Parameters: |
|
---|---|
Returns: | normalized 3d vector. |
Return type: |
Return the region relative 2d location of a 3d position.
Parameters: |
|
---|---|
Returns: | 2d location |
Return type: |