Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

anoid::simple::Point Class Reference

#include <point.hh>

Inheritance diagram for anoid::simple::Point:

Inheritance graph
[legend]
Collaboration diagram for anoid::simple::Point:

Collaboration graph
[legend]
List of all members.

Public Methods

 Point (double getx=0, double gety=0, double getz=0)
double getX (void) const
double getY (void) const
double getZ (void) const
void setX (double getx)
void setY (double gety)
void setZ (double getz)
void addX (double getx)
void addY (double gety)
void addZ (double getz)

Protected Attributes

double x
double y
double z

Constructor & Destructor Documentation

anoid::simple::Point::Point double    getx = 0,
double    gety = 0,
double    getz = 0
 

Constructor Constructs a point with 3 coordinates

Parameters:
getx  the 1st coordinate
gety  the 2nd coordinate
getz  the 3rd coordinate

Definition at line 6 of file point.cc.


Member Function Documentation

void anoid::simple::Point::addX double    getx
 

addX adds getx to 1st coordinate

Parameters:
getx  the value to be added to the first coordinate

Definition at line 33 of file point.cc.

References x.

void anoid::simple::Point::addY double    gety
 

addY adds gety to 2nd coordinate

Parameters:
gety  the value to be added to the second coordinate

Definition at line 37 of file point.cc.

References y.

void anoid::simple::Point::addZ double    getz
 

addZ adds getz to 3rd coordinate

Parameters:
getz  the value to be added to the third coordinate

Definition at line 41 of file point.cc.

References z.

double anoid::simple::Point::getX void    const
 

getX returns the 1st coordinate of the point

Returns:
the 1st coordinate of the point

Definition at line 9 of file point.cc.

References x.

Referenced by ASC::ASC(), anoid::plugin::SpinVelocity::init(), anoid::plugin::AscShape::init(), anoid::simple::Matrix::Matrix(), anoid::plugin::Color::redraw(), and tilde().

double anoid::simple::Point::getY void    const
 

getY returns the 2nd coordinate of the point

Returns:
the 2nd coordinate of the point

Definition at line 13 of file point.cc.

References y.

Referenced by ASC::ASC(), anoid::plugin::SpinVelocity::init(), anoid::plugin::AscShape::init(), anoid::simple::Matrix::Matrix(), anoid::plugin::Color::redraw(), and tilde().

double anoid::simple::Point::getZ void    const
 

getZ returns 3rd coordinate of the point

Returns:
the 3rd coordinate of the point

Definition at line 17 of file point.cc.

References z.

Referenced by ASC::ASC(), anoid::plugin::SpinVelocity::init(), anoid::plugin::AscShape::init(), anoid::simple::Matrix::Matrix(), anoid::plugin::Color::redraw(), and tilde().

void anoid::simple::Point::setX double    getx
 

setX sets 1st coordinate to getx

Parameters:
getx  the new 1st coordinate

Definition at line 21 of file point.cc.

References x.

Referenced by ASC::ASC(), and anoid::plugin::SpinVelocity::init().

void anoid::simple::Point::setY double    gety
 

setY sets 2nd coordinate to gety

Parameters:
gety  the new 2nd coordinate

Definition at line 25 of file point.cc.

References y.

Referenced by ASC::ASC(), and anoid::plugin::SpinVelocity::init().

void anoid::simple::Point::setZ double    getz
 

setZ sets 3rd coordinate to getz

Parameters:
getz  the new 3rd coordinate

Definition at line 29 of file point.cc.

References z.

Referenced by ASC::ASC(), and anoid::plugin::SpinVelocity::init().


Member Data Documentation

double anoid::simple::Point::x [protected]
 

Definition at line 15 of file point.hh.

Referenced by addX(), getX(), anoid::simple::Vector::init(), anoid::simple::operator *(), anoid::simple::operator%(), anoid::simple::operator+(), anoid::simple::operator+=(), anoid::simple::operator<<(), anoid::simple::Vector::operator=(), anoid::simple::Vector::scale(), anoid::simple::Vector::setNorm(), setX(), and Vertex::Vertex().

double anoid::simple::Point::y [protected]
 

Definition at line 15 of file point.hh.

Referenced by addY(), getY(), anoid::simple::Vector::init(), anoid::simple::operator *(), anoid::simple::operator%(), anoid::simple::operator+(), anoid::simple::operator+=(), anoid::simple::operator<<(), anoid::simple::Vector::operator=(), anoid::simple::Vector::scale(), anoid::simple::Vector::setNorm(), setY(), and Vertex::Vertex().

double anoid::simple::Point::z [protected]
 

Definition at line 15 of file point.hh.

Referenced by addZ(), getZ(), anoid::simple::Vector::init(), anoid::simple::operator *(), anoid::simple::operator%(), anoid::simple::operator+(), anoid::simple::operator+=(), anoid::simple::operator<<(), anoid::simple::Vector::operator=(), anoid::simple::Vector::scale(), anoid::simple::Vector::setNorm(), setZ(), and Vertex::Vertex().


The documentation for this class was generated from the following files:
Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen