F
Faustino Dina
Hi,
I'm implementing some algebra algorithms in C#, so I think to use the Matrix
class in some operations. But I was struck by two factors:
-The Matrix.Rotate() functions (and in general, all angle operations in
System.Drawing.Drawing2D) are in decimal gradus, but basic angle functions
in Math package are un radians. It is a problem, I should convert my angles
all the time betweem these two systems if I want to use the Matrix class
functions with my own functions.
-The angle used by Matrix.Rotate() increases clockwise. But as long as I
understand in "normal" mathematics the angle increases the reverse. The Math
functions like Math.Sin understand angles increasing non-clockwise. So if I
want to use Matrix.Rotate I should also convert my angles to this "reversed"
coordinate system.
These are my concerns. Am I right? System.Drawing.Drawing2D and Math
packages doesn't mix? Which is the reccommended practice in this situation?
To use another "right" Matrix package? Which one do you reccomend?
Thanks in advance
Faustino
I'm implementing some algebra algorithms in C#, so I think to use the Matrix
class in some operations. But I was struck by two factors:
-The Matrix.Rotate() functions (and in general, all angle operations in
System.Drawing.Drawing2D) are in decimal gradus, but basic angle functions
in Math package are un radians. It is a problem, I should convert my angles
all the time betweem these two systems if I want to use the Matrix class
functions with my own functions.
-The angle used by Matrix.Rotate() increases clockwise. But as long as I
understand in "normal" mathematics the angle increases the reverse. The Math
functions like Math.Sin understand angles increasing non-clockwise. So if I
want to use Matrix.Rotate I should also convert my angles to this "reversed"
coordinate system.
These are my concerns. Am I right? System.Drawing.Drawing2D and Math
packages doesn't mix? Which is the reccommended practice in this situation?
To use another "right" Matrix package? Which one do you reccomend?
Thanks in advance
Faustino