CoordinateTransform
CoordinateTransform[t,pt]
performs the coordinate transformation t on the point pt.
CoordinateTransform[t,{pt1,pt2,…}]
transforms several points.
Details
- Transformations can be entered in the form oldchart->newchart, where oldchart and newchart are valid chart specifications available from CoordinateChartData.
- Transformations can additionally be given as CoordinateTransformData standard names {oldsys->newsys,metric,dim}, where {oldsys,metric,dim} and {newsys,metric,dim} are valid charts available from CoordinateChartData. The short form in which dimension is omitted may be used.
- CoordinateTransform[t,pt] is effectively equivalent to CoordinateTransformData[t,"Mapping",pt].
- CoordinateTransform automatically threads over arrays of coordinate lists.
Examples
open allclose allBasic Examples (2)
Scope (5)
Give the {x,y,z} values for a point expressed in spherical coordinates:
Change a point in prolate spheroidal to spherical coordinates, specifying a parameter for prolate spheroidal coordinates:
The same transformation, expressed more verbosely:
Transform coordinates on the sphere of radius r to corresponding values in the stereographic projection:
Transform several points at once from cylindrical to Cartesian coordinates:
Transform a matrix of points from Cartesian to spherical coordinates:
Applications (1)
Properties & Relations (8)
CoordinateTransformData[ent,"Mapping",pt] is effectively CoordinateTransform[ent,pt]:
CoordinateTransform checks that inputs obey the coordinate range assumptions of charts:
This point violates the coordinate range assumption on the polar angle :
Extract the symbolic transform from CoordinateTransformData to apply it to singular points:
The reverse mapping is not well-defined at this point:
CoordinateTransform preserves the shape of arrays:
CoordinateTransform changes the coordinate values of points:
TransformedField changes the coordinate expressions for fields:
ToPolarCoordinates is a special case of CoordinateTransform:
FromSphericalCoordinates is a special case of CoordinateTransform:
ToSphericalCoordinates is a special case of CoordinateTransform:
Text
Wolfram Research (2012), CoordinateTransform, Wolfram Language function, https://reference.wolfram.com/language/ref/CoordinateTransform.html (updated 2015).
CMS
Wolfram Language. 2012. "CoordinateTransform." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/CoordinateTransform.html.
APA
Wolfram Language. (2012). CoordinateTransform. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CoordinateTransform.html