Elements  5.10
A C++ base framework for the Euclid Software.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
Elements::Examples::Rectangle Class Reference

#include <Rectangle.h>

Public Member Functions

 Rectangle (int x0, int y0, int x1, int y1)
 
 ~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 32 of file Rectangle.h.

Constructor & Destructor Documentation

Elements::Examples::Rectangle::Rectangle ( int  x0,
int  y0,
int  x1,
int  y1 
)

Definition at line 23 of file Rectangle.cpp.

References x0, x1, y0, and y1.

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

Definition at line 30 of file Rectangle.cpp.

Member Function Documentation

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

Definition at line 41 of file Rectangle.cpp.

References x0, x1, y0, and y1.

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

Definition at line 37 of file Rectangle.cpp.

References y0, and y1.

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

Definition at line 33 of file Rectangle.cpp.

References x0, and x1.

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

Definition at line 45 of file Rectangle.cpp.

References x0, x1, y0, and y1.

Member Data Documentation

int Elements::Examples::Rectangle::x0

Definition at line 34 of file Rectangle.h.

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

int Elements::Examples::Rectangle::x1

Definition at line 34 of file Rectangle.h.

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

int Elements::Examples::Rectangle::y0

Definition at line 34 of file Rectangle.h.

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

int Elements::Examples::Rectangle::y1

Definition at line 34 of file Rectangle.h.

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


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