incorrect rotation direction
This commit is contained in:
@ -101,6 +101,7 @@ namespace DroneSimulator
|
|||||||
private static Bitmap DrawImageByQuaternion(Bitmap bmp, Quaternion orientation)
|
private static Bitmap DrawImageByQuaternion(Bitmap bmp, Quaternion orientation)
|
||||||
{
|
{
|
||||||
if (bmp == null) return null;
|
if (bmp == null) return null;
|
||||||
|
orientation.X = -orientation.X;
|
||||||
|
|
||||||
int canvasSize = (int)System.Math.Sqrt(bmp.Width * bmp.Width + bmp.Height * bmp.Height);
|
int canvasSize = (int)System.Math.Sqrt(bmp.Width * bmp.Width + bmp.Height * bmp.Height);
|
||||||
Bitmap result = new Bitmap(canvasSize, canvasSize);
|
Bitmap result = new Bitmap(canvasSize, canvasSize);
|
||||||
|
Reference in New Issue
Block a user