Syntax
- float convert(coordinate, fromSystem, toSystem, type, x, y, z)
- float[] convert(fromSystem, toSystem, type, coordinates)
Parameters
- coordinate—selector{ x | y | z }—Coordinate component to convert.
- fromSystem—selector{ scope | pivot | object | world }—Coordinate system from which to convert.
- toSystem—selector{ scope | pivot | object | world }—Coordinate system to which to convert.
- type—selector{ pos | orient }—Choose interpretation of the coordinates array or the (x, y, z) tuple as coordinates or angles.
- x, y, z—float
coordinates—float[]
Position (coordinates) / orientation (angles in degrees) in the fromSystem to convert to the toSystem.
Returns
The selected coordinate component of the tuple (x, y, z) or the coordinates array, converted from the fromSystem coordinate system to the toSystem coordinate system. The coordinates can either describe angles or a position.
Description
The convert function converts positions and orientations between different coordinate systems.
Related
Examples
|