protected override void DrawFrame(GameTime gameTime, XnaRenderer renderer) { renderer.Clear(Color.White); Vector2 start = new Vector2(0, 0); Vector2 end = start + Util.AngleToVector(_angle) * _lineLength; renderer.BeginDraw(_camera); renderer.DrawPoint(start, 3f, Color.Green, 1f); renderer.DrawPoint(end, 3f, Color.Red, 1f); renderer.DrawArrow(start, end, 0.5f, Color.Black, 1f); renderer.EndDraw(); }
protected override void DrawFrame(GameTime gameTime, XnaRenderer renderer) { renderer.Clear(Color.White); }