Inconsistent in Trans and CplxTrans convention

Recently, I tried to use Trans and CplxTrans class. And I find that, there are some inconsistent between them, for example. If I define a Trans class like below:

t = pya.Trans(45, False, 0, 0) # r90 0,0
t = pya.Trans(45, True, 0, 0)  # m45 0,0

The result is behind # simbol above. However, for CplxTrans class.

t = pya.CplxTrans(1, 45, False, 0, 0) # r45 *1 0,0
t = pya.CplxTrans(1, 45, True, 0, 0) # m22.5 *1 0,0

See, the results are not inconsistent. Is this a bug or something? Maybe we should keep these two conventions consistent?

Comments

  • edited May 7

    There seems to be a misunderstanding about the units of rotation angle.

  • @sekigawa Thanks for the explanation :) This is exactly the reason.

    Here is the rationale: with Trans there is no "free angle". The only allowed angles are 0°, 90°, 180° and 270°. Instead of reducing any number to one of these allowed values, the unit is simply "90 degree".

    Matthias

  • @sekigawa @Matthias Thanks all of you, recently I am a little busy. Later I will try to understand this and send the feedback.

Sign In or Register to comment.