Elements  6.2
A C++ base framework for the Euclid Software.
Public Member Functions | Public Attributes | List of all members
Elements::Examples::Rectangle Class Reference

#include <Rectangle.h>

Public Member Functions

 Rectangle (int xl, int yl, int xu, int yu)
 
 ~Rectangle ()
 
int getLength ()
 
int getHeight ()
 
int getArea ()
 
void move (int dx, int dy)
 

Public Attributes

int x0
 
int y0
 
int x1
 
int y1
 

Detailed Description

Definition at line 34 of file Rectangle.h.

Constructor & Destructor Documentation

◆ Rectangle()

Elements::Examples::Rectangle::Rectangle ( int  xl,
int  yl,
int  xu,
int  yu 
)

Definition at line 23 of file Rectangle.cpp.

References x0, x1, y0, and y1.

◆ ~Rectangle()

Elements::Examples::Rectangle::~Rectangle ( )

Definition at line 30 of file Rectangle.cpp.

Member Function Documentation

◆ getArea()

int Elements::Examples::Rectangle::getArea ( )

Definition at line 40 of file Rectangle.cpp.

References x0, x1, y0, and y1.

◆ getHeight()

int Elements::Examples::Rectangle::getHeight ( )

Definition at line 36 of file Rectangle.cpp.

References y0, and y1.

◆ getLength()

int Elements::Examples::Rectangle::getLength ( )

Definition at line 32 of file Rectangle.cpp.

References x0, and x1.

◆ move()

void Elements::Examples::Rectangle::move ( int  dx,
int  dy 
)

Definition at line 44 of file Rectangle.cpp.

References x0, x1, y0, and y1.

Member Data Documentation

◆ x0

int Elements::Examples::Rectangle::x0

Definition at line 36 of file Rectangle.h.

Referenced by getArea(), getLength(), move(), and Rectangle().

◆ x1

int Elements::Examples::Rectangle::x1

Definition at line 38 of file Rectangle.h.

Referenced by getArea(), getLength(), move(), and Rectangle().

◆ y0

int Elements::Examples::Rectangle::y0

Definition at line 37 of file Rectangle.h.

Referenced by getArea(), getHeight(), move(), and Rectangle().

◆ y1

int Elements::Examples::Rectangle::y1

Definition at line 39 of file Rectangle.h.

Referenced by getArea(), getHeight(), move(), and Rectangle().


The documentation for this class was generated from the following files: