|
2D Geom Bibliothek
|
#include <Circle.h>
Öffentliche Methoden | |
| Circle (double x, double y, double r) | |
| Circle (const Point &p, double r) | |
| Circle (const Point *p, double r) | |
| Circle (const Point &a, const Point &b, const Point &c) | |
| Circle (const Point *a, const Point *b, const Point *c) | |
| ~Circle () | |
| void | setPosition (const Point &p) |
| void | setPosition (const Point *p) |
| bool | operator== (const Circle &another) const |
| virtual void | move (double dx, double dy) |
| virtual void | reflect (const Point *p) |
| virtual void | reflect (const Line *e) |
| virtual void | rotate (const Point *p, double degree) |
| virtual double | getArea () |
| virtual double | getPerimeter () |
| virtual bool | isInside (const Point *p) |
| virtual void | draw () |
| double | getX () const |
| void | setX (double x) |
| double | getY () const |
| void | setY (double y) |
| double | getR () const |
| void | setR (double r) |
Öffentliche Methoden geerbt von Drawable | |
| Drawable () | |
| void | setColor (float red, float green, float blue) |
| const float * | getColor () const |
Statische öffentliche Attribute | |
| static constexpr double | PI = 3.14159265359 |
| static constexpr double | CIRCLE_POINTS = 180 |
Weitere Geerbte Elemente | |
Geschützte Methoden geerbt von Drawable | |
| virtual void | setupColor () |
Diese Klasse verwirklicht ein Kreis
| Circle::Circle | ( | double | x, |
| double | y, | ||
| double | r | ||
| ) |
Iniziert ein Kreis durch
( x , y ) : Mittelpunkt von der Kreis
r : Radius von der Kreis
ACHTUNG: r muss größer als 0 sein, sondern wird die Kreis nicht iniziert!
| Circle::Circle | ( | const Point & | p, |
| double | r | ||
| ) |
Iniziert ein Kreis durch p : Mittelpunkt von der Kreis (Referenz)
r : Radius von der Kreis
ACHTUNG: r muss größer als 0 sein, sondern wird die Kreis nicht iniziert!
| Circle::Circle | ( | const Point * | p, |
| double | r | ||
| ) |
Iniziert ein Kreis durch p : Mittelpunkt von der Kreis (Zeiger)
r : Radius von der Kreis
ACHTUNG: r muss größer als 0 sein, sondern wird die Kreis nicht iniziert!
Iniziert ein Kreis durch 3 Punkten ( a , b , c ) (Referenz)
Die Kreis wird die Umkreis von diesen Dreieck.
ACHTUNG: Diese Punkten sollen verschiedenen sein und dürfen nicht auf ein Gerade fallen, sonst wird die Kreis nicht iniziert!
Iniziert ein Kreis durch 3 Punkten ( a , b , c ) (Zeiger)
Die Kreis wird die Umkreis von diesen Dreieck.
ACHTUNG: Diese Punkten sollen verschiedenen sein und dürfen nicht auf ein Gerade fallen,
sonst wird die Kreis nicht iniziert!
| Circle::~Circle | ( | ) |
Entfernt die Mittelpunkt pP
|
virtual |
Zeichnet die Komponent auf einer openGL Fläche zeichnen
Implementiert Drawable.
|
virtual |
Gibt die Flächeninhalt zurück
Implementiert Area.
|
virtual |
Gibt die Umfang zurück
Implementiert Area.
|
virtual |
Gibt zurück, ob die Punkt p ist innerhalb der Komponent
Implementiert Area.
|
virtual |
Verschiebt die Komponent mit dx und dy
Implementiert Transformable.
| bool Circle::operator== | ( | const Circle & | another | ) | const |
Entscheidet ob diese Kreis hat dieselbe Eigenschaften als die another Kreis
|
virtual |
Spiegelt die Komponent auf den p Punkt
Implementiert Transformable.
|
virtual |
Spiegelt die Komponent auf die Gerade e
Implementiert Transformable.
|
virtual |
Rotiert die Komponent um p Punkt mit degree Grad
Implementiert Transformable.
| void Circle::setPosition | ( | const Point & | p | ) |
Stellt die Position der Mittelpunkt zu p Punkt ein (Referenz)
| void Circle::setPosition | ( | const Point * | p | ) |
Stellt die Position der Mittelpunkt zu p Punkt ein (Zeiger)
|
static |
Der Anzahl von Punkten (bei der Zeichnung)
|
static |
Mathe Konstante PI
1.8.11