RescalingTransform
RescalingTransform[{{xmin,xmax},{ymin,ymax},…},{{xpmin,xpmax},…}]
gives a TransformationFunction that rescales the region with coordinate ranges xmin to xmax, etc. to the region with coordinate ranges xpmin to xpmax, etc.
RescalingTransform[{{xmin,xmax},{ymin,ymax},…}]
gives a TransformationFunction that rescales to the unit square, cube, etc.
Details
- RescalingTransform is also known as windowing transform and model view transform.
- RescalingTransform gives a TransformationFunction which can be applied to vectors.
- RescalingTransform works in any number of dimensions. In 2D, it transforms rectangles to rectangles, and in 3D cuboids to cuboids.
Examples
open allclose allBasic Examples (2)
Scope (3)
Applications (5)
Transforming graphics primitives:
Compute the transform from user coordinates to Scaled coordinates in 2D:
Transform some particular coordinates:
Compute the transform from Scaled to user coordinates:
Transform some particular coordinates:
Compute the transform from user coordinates to Scaled coordinates in 3D:
Transform some particular coordinates:
Compute the transform from Scaled to user coordinates:
Transform some particular coordinates:
Transform from user coordinates to Scaled coordinates with a particular PlotRange:
Specify the disk in user coordinates and the circle in Scaled coordinates:
Compute the model view transform for OpenGL, using the axis pointing out from the screen:
Transform user coordinates to the standard model coordinates:
Properties & Relations (3)
The inverse of RescalingTransform[{{l1,u1},…},{{L1,U1},…}] is given by RescalingTransform[{{L1,U1},…},{{l1,u1},…}]:
This shows that t1 and t2 are inverses:
Rescaling transformation is a composition of scaling and translation:
Rescale provides a scalar version of RescalingTransform:
Text
Wolfram Research (2007), RescalingTransform, Wolfram Language function, https://reference.wolfram.com/language/ref/RescalingTransform.html.
CMS
Wolfram Language. 2007. "RescalingTransform." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RescalingTransform.html.
APA
Wolfram Language. (2007). RescalingTransform. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RescalingTransform.html