You aren't drawing your rectangle properly centered. The rectangle's center is the top left m_renderTarget->DrawRectangle(D2D1::RectF(0.0f, 0.0f, 3.0f * 30.0f, 1.0f * 30.0f), m_brush) In order to center it properly, you should have Left = -Right, Top = -Bottom like so m_renderTarget->DrawRectangle(D2D1::RectF(-1.5 * 30. F, -0.5 * 30.
F, 1.5f * 30.0f, 0.5f * 30.0f), m_brush) Here's a diagram explaining why centering is important: Physically you represent both shapes properly, but graphically you unknowingly added an offset to the rectangle. Also, your scale is off: you assume 1 = 30 pixels for the rectangle, and 0.5 = 30 pixels for the circle. Consistency is key in simulations, so you should lower your D2D1::Ellipse's radii to 15 each.
You aren't drawing your rectangle properly centered. The rectangle's center is the top left. M_renderTarget->DrawRectangle(D2D1::RectF(0.0f, 0.0f, 3.0f * 30.0f, 1.0f * 30.0f), m_brush); In order to center it properly, you should have Left = -Right, Top = -Bottom like so m_renderTarget->DrawRectangle(D2D1::RectF(-1.5 * 30.
F, -0.5 * 30. F, 1.5f * 30.0f, 0.5f * 30.0f), m_brush); Here's a diagram explaining why centering is important: Physically you represent both shapes properly, but graphically you unknowingly added an offset to the rectangle. Also, your scale is off: you assume 1 = 30 pixels for the rectangle, and 0.5 = 30 pixels for the circle.
Consistency is key in simulations, so you should lower your D2D1::Ellipse's radii to 15 each.
It seems that you are correct, but also that I need to change the radius to 15.0f in the DrawEllipse call. – user987280 Nov 2 at 7:42.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.