trans
(trans point origin_cs target_cs [display_mode])
The trans function allows the transformation of a point between different coordinate systems. The function transforms the coordinates supplied with the argument point and returns the resulting coordinates.
The origin coordinate system and the target coordinate system are specified by the arguments origin_cs and target_cs.
Arguments
The parameter display_mode controls the contemplation of point (point or direction).
The arguments origin_cs and target_cs are evaluated as follows:
Argument |
Description |
0 | 1 | 2 |
Specifies the coordinate system to be applied:
0 = World Coordinate System (WCS)
1 = Current Customer Coordinate System (CCS)
2 = Current View Coordinate System (VCS) |
name |
Entity Coordinate System (ECS) of the drawing entity |
3D point |
Extrusion vector |
Return Value
The function returns the result of the transformation.
: (trans '(0 0 0) 0 1)
(0 0 0)
(trans '(0 0 0) 1 (entlast) 1)