Bearing in WPF

Topics: Bugs, WPF
Oct 21, 2010 at 2:29 PM

Hi Radioman,

is the folowing in your Code right???:

 

void

UpdateRotationMatrix()

{

System.Windows.

Point center = new System.Windows.Point

(ActualWidth / 2.0, ActualHeight / 2.0);

rotationMatrix.Angle = -Bearing;

rotationMatrix.CenterY = center.X;

rotationMatrix.CenterX = center.Y;

rotationMatrixInvert = rotationMatrix.Inverse;

}

 

.CenterY = center.X??

 

 

Oct 21, 2010 at 3:43 PM

Thats it! You've just solved a great mystery ;} Thanks