Ellipse
Creates a new ellipse with the specified centre, horizontal and vertical radiuses and angle. Same as above but by using vectors.
float angle - The rotation angle of the ellipse See the examples of how to easily render an ellipse to the screen by using a temporary object. If you want a circle instead of an ellipse, you can either make an ellipse with the same x and y radiuses or to use the Circle class. Examples // Create a new ellipse such that the centre is at x = 200.0, y = 100.0 //
// and the radiuses are horizontal: 50.0 and vertical: 30.0 // Ellipse myEllipse( 200.0, 100.0, 50.0, 30.0 ); // Draw the ellipse to the canvas filled with blue // myEllipse.Draw( Rgba::BLUE ); // You can create and ellipse and draw it with a single line // Ellipse( 200.0, 100.0, 50.0, 30.0 ).Draw( Rgba::BLUE ); Member functions
Derived Classes
Parent Class Questions about Ellipse? Click here. |