Author Topic: move+rotate(+scale) with 'trans'?  (Read 1344 times)

0 Members and 1 Guest are viewing this topic.

Peter2

  • Swamp Rat
  • Posts: 653
move+rotate(+scale) with 'trans'?
« on: October 17, 2016, 09:06:41 AM »
The first time that I try to use "trans", and so my question is:

Can I do a "move+rotate(+scale)" with 'trans'?

Example:
- I have a pline (or a list of 3 points) from 0,0 to 5,0 to 7,7
- I want to
-- move it from 0,0 to 10,10
-- rotate it (base 10,10) from direction (0,0 - 5,0) to direction (10,10 - 20,20)
(-- scale it (base 10,10) from length (0,0 - 5,0) to length (10,10 - 20,20))

Can it be done with 'trans'?
Or is another way better?

Thanks and regards

Peter
« Last Edit: October 17, 2016, 09:11:56 AM by Peter2 »
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: move+rotate(+scale) with 'trans'?
« Reply #1 on: October 17, 2016, 09:18:04 AM »
Do you mean (trans) or (vla-transformby)?

Peter2

  • Swamp Rat
  • Posts: 653
Re: move+rotate(+scale) with 'trans'?
« Reply #2 on: October 17, 2016, 09:38:08 AM »
I think that the task is a (kind of) transformation, and this is why I asked for "trans". I don't know "vla-transformby", but it seem to belong to matrix ...
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

Grrr1337

  • Swamp Rat
  • Posts: 812
Re: move+rotate(+scale) with 'trans'?
« Reply #3 on: October 17, 2016, 01:03:11 PM »
Lee Mac has some awesome matrix transformation functions, not sure if thats you are looking for.
http://www.lee-mac.com/matrixtransformationfunctions.html
(apply ''((a b c)(a b c))
  '(
    (( f L ) (apply 'strcat (f L)))
    (( L ) (if L (cons (chr (car L)) (f (cdr L)))))
    (72 101 108 108 111 32 87 111 114 108 100)
  )
)
vevo.bg

Peter2

  • Swamp Rat
  • Posts: 653
Re: move+rotate(+scale) with 'trans'?
« Reply #4 on: October 17, 2016, 03:12:28 PM »
Lee Mac has some awesome matrix transformation functions...
I will have to think about it, but at first look it looks great - thanks for the hint   :-)
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23