Skip to content

trans

(trans point from to [displacement])

Converts a point from one coordinate system to another. Systems are given as a number: 0 the world system (WCS), 1 the current UCS and 2 the display system (in 2D, the same as the UCS). With a non-nil fourth argument, the point is treated as a displacement: it is only rotated, without taking the UCS origin into account.

(trans '(0 0) 1 0)      ; the UCS origin, in world coordinates
(trans '(10 0) 1 0 T)   ; 10 units along the UCS X direction, in the WCS

Differences with AutoCAD

An entity name (object coordinate system) or 3 (paper space) return the point unchanged.

Download LinceCAD Manual contents