xformtst
The code consists of a coordinate space conversion utility and a simple test program. The utility converts an array of points in 3D axes coordinates to an array of points in window or screen coordinates along with depth values, where depth is distance from the camera position. In the case of orthographic projection, the transformation is affine and can be represented by a matrix (using homogeneous coordinates). The matrix is an optional output whose inverse maps a pair of screen coordinates, along with a depth, to a point in axes coordinates. This capability can be used to design a space curve by dragging control points in a projection plane: http://www.cse.unt.edu/~renka/tspack/tspack.html.
Extensive comments in the code describe part of the MATLAB graphics processing pipeline in more detail than is available anywhere else.
Cite As
Robert Renka (2024). xformtst (https://www.mathworks.com/matlabcentral/fileexchange/67719-xformtst), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |