Syntax
- float convert(coordinate, fromSystem, toSystem, type, x, y, z)
Parameters
- coordinate—selector{ x | y | z }—Coordinate component.
- 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 (x, y, z) tuple as coordinates or angles.
- x, y, z—floatPosition (coordinates) / orientation (angles in degrees) in the fromSystem to convert to the toSystem.
Returns
The selected coordinate component of the tuple (x, y, z), converted from the fromSystem coordinate system to the toSystem coordinate system. The tuple can either describe angles or a position.
Description
The convert function converts positions and orientations between different coordinate systems.
Related
Examples
Using convert to find the position and orientation of the scope origin in world and pivot coordinates as well as the highest point of the scope in world coordinates.
|
The output of the cga code: