Go to the documentation of this file.
25 Cylinder(
const Vector3 &position,
float radiusTop,
float radiusBottom,
float height,
const Color &color);
A Three-dimensionnal Vector data type.
Definition: Vector3.hpp:15
Cylinder & setTopRadius(float radius)
set radius
Definition: Cylinder.cpp:23
int getBottomRadius(void) const
Definition: Cylinder.cpp:29
Cylinder in a three-dimensionnal space.
Definition: Cylinder.hpp:16
Cylinder(const Vector3 &position, float radiusTop, float radiusBottom, float height, const Color &color)
Cylinder constructor.
Definition: Cylinder.cpp:13
int getTopRadius(void) const
Definition: Cylinder.cpp:18
Definition: Window.hpp:32
float _topRadius
Radius of the cylinder.
Definition: Cylinder.hpp:62
Cylinder & operator=(const Cylinder &)=default
A cylinder is assignable.
Abstraction of any three-dimensionnal drawable.
Definition: ADrawable3D.hpp:17
float getHeight(void) const
Definition: Cylinder.cpp:40
float _bottomRadius
Radius of the cylinder.
Definition: Cylinder.hpp:65
Definition: Circle.cpp:10
Cylinder & setHeight(float height)
the Height
Definition: Cylinder.cpp:45
Cylinder & setBottomRadius(float radius)
set radius
Definition: Cylinder.cpp:34
void drawOn(RAY::Window &) override
Draw point on window.
Definition: Cylinder.cpp:51
Object representation of color.
Definition: Color.hpp:15
void drawWiresOn(RAY::Window &) override
Draw cylinder's wires on window.
Definition: Cylinder.cpp:56
float _height
height of the cylinder
Definition: Cylinder.hpp:68
~Cylinder() override=default
A default destructor.