Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lisp/l/coordinates.l
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@
(transform-coords (send (send self :parentcoords)
:inverse-transformation) cc cc)
(send self :newcoords cc))))
(:align (from &key to)
(unless (coordinates-p from) (error "coordinates expected for self-reference"))
(unless (coordinates-p to) (error "coordinates expected for target"))
(send self :transform (send from :transformation to :world) :world)
self)
(:rotate-vector (v) (transform rot v))
(:transform-vector (v)
;vector v given in the local coords is converted to world representation
Expand Down