Points&Forces (core)
Software tools facilitating the task of surveying architecture
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
a_point2 Class Reference

#include <a_point2.h>

+ Inheritance diagram for a_point2:
+ Collaboration diagram for a_point2:

Public Member Functions

 a_point2 ()
 
 a_point2 (double x, double y)
 
 a_point2 (const float x[2])
 
 a_point2 (const double x[2])
 
 a_point2 (const a_point2 &p)
 
virtual const std::string classname ()
 
double x () const
 
double y () const
 
double operator[] (const int i) const
 
void x (double v)
 
void y (double v)
 
void set (double x, double y)
 
void set (double x[2])
 
void set (float x[2])
 
a_point2translate (double x, double y)
 
a_point2rotate (const double angle)
 
double & operator[] (const int i)
 
bool operator== (const a_point2 &p)
 
a_point2operator= (const a_point2 &p)
 
a_point2operator- ()
 
a_point2operator+= (const a_point2 &)
 
a_point2operator-= (const a_point2 &)
 
double operator*= (const a_point2 &)
 
a_point2operator*= (double v)
 
a_point2operator/= (double v)
 
a_point2operator/= (const a_point2 &)
 
double sumsq () const
 
double norm () const
 
double dist (const a_point2 &p) const
 
a_point2normalise ()
 
virtual void read (std::istream &i)
 
virtual void write (std::ostream &o) const
 
- Public Member Functions inherited from a_base
 a_base ()
 
void read (const std::string &file_in)
 
void write (const std::string &file_out) const
 
void small (double tol)
 
double small () const
 

Static Public Member Functions

static const std::string help ()
 
- Static Public Member Functions inherited from a_geom_base
static const std::string help ()
 
- Static Public Member Functions inherited from a_base
static const std::string help ()
 

Protected Attributes

double x_
 
double y_
 
- Protected Attributes inherited from a_base
double verysmall_
 

Detailed Description

Definition at line 39 of file a_point2.h.

Constructor & Destructor Documentation

◆ a_point2() [1/5]

a_point2::a_point2 ( )
inline

Definition at line 42 of file a_point2.h.

◆ a_point2() [2/5]

a_point2::a_point2 ( double  x,
double  y 
)
inline

Definition at line 43 of file a_point2.h.

◆ a_point2() [3/5]

a_point2::a_point2 ( const float  x[2])
inline

Definition at line 44 of file a_point2.h.

◆ a_point2() [4/5]

a_point2::a_point2 ( const double  x[2])
inline

Definition at line 45 of file a_point2.h.

◆ a_point2() [5/5]

a_point2::a_point2 ( const a_point2 p)
inline

Definition at line 46 of file a_point2.h.

Member Function Documentation

◆ classname()

virtual const std::string a_point2::classname ( )
inlinevirtual

return class name: should be overridden by children classes

Reimplemented from a_geom_base.

Definition at line 48 of file a_point2.h.

◆ dist()

double a_point2::dist ( const a_point2 p) const
inline

Definition at line 78 of file a_point2.h.

◆ help()

const std::string a_point2::help ( )
static

Definition at line 22 of file a_point2.cxx.

+ Here is the caller graph for this function:

◆ norm()

double a_point2::norm ( ) const

Definition at line 85 of file a_point2.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ normalise()

a_point2 & a_point2::normalise ( )

Definition at line 90 of file a_point2.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator*=() [1/2]

double a_point2::operator*= ( const a_point2 p)

Definition at line 49 of file a_point2.cxx.

+ Here is the call graph for this function:

◆ operator*=() [2/2]

a_point2 & a_point2::operator*= ( double  v)

Definition at line 66 of file a_point2.cxx.

◆ operator+=()

a_point2 & a_point2::operator+= ( const a_point2 p)

Definition at line 35 of file a_point2.cxx.

+ Here is the call graph for this function:

◆ operator-()

a_point2 & a_point2::operator- ( )

Definition at line 28 of file a_point2.cxx.

◆ operator-=()

a_point2 & a_point2::operator-= ( const a_point2 p)

Definition at line 42 of file a_point2.cxx.

+ Here is the call graph for this function:

◆ operator/=() [1/2]

a_point2& a_point2::operator/= ( const a_point2 )

◆ operator/=() [2/2]

a_point2 & a_point2::operator/= ( double  v)

Definition at line 73 of file a_point2.cxx.

+ Here is the caller graph for this function:

◆ operator=()

a_point2 & a_point2::operator= ( const a_point2 p)

Definition at line 59 of file a_point2.cxx.

+ Here is the call graph for this function:

◆ operator==()

bool a_point2::operator== ( const a_point2 p)

Definition at line 54 of file a_point2.cxx.

+ Here is the call graph for this function:

◆ operator[]() [1/2]

double& a_point2::operator[] ( const int  i)
inline

Definition at line 64 of file a_point2.h.

◆ operator[]() [2/2]

double a_point2::operator[] ( const int  i) const
inline

Definition at line 54 of file a_point2.h.

◆ read()

void a_point2::read ( std::istream &  i)
virtual

read object from stream: should be overridden by children classes

Reimplemented from a_base.

Definition at line 148 of file a_point2.cxx.

◆ rotate()

a_point2 & a_point2::rotate ( const double  angle)

Definition at line 97 of file a_point2.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ set() [1/3]

void a_point2::set ( double  x,
double  y 
)
inline

Definition at line 59 of file a_point2.h.

+ Here is the call graph for this function:

◆ set() [2/3]

void a_point2::set ( double  x[2])
inline

Definition at line 60 of file a_point2.h.

+ Here is the call graph for this function:

◆ set() [3/3]

void a_point2::set ( float  x[2])
inline

Definition at line 61 of file a_point2.h.

+ Here is the call graph for this function:

◆ sumsq()

double a_point2::sumsq ( ) const

Definition at line 80 of file a_point2.cxx.

+ Here is the caller graph for this function:

◆ translate()

a_point2& a_point2::translate ( double  x,
double  y 
)
inline

Definition at line 62 of file a_point2.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ write()

void a_point2::write ( std::ostream &  o) const
virtual

write object to stream: should be overridden by children classes

Reimplemented from a_base.

Definition at line 154 of file a_point2.cxx.

+ Here is the call graph for this function:

◆ x() [1/2]

double a_point2::x ( ) const
inline

Definition at line 52 of file a_point2.h.

+ Here is the caller graph for this function:

◆ x() [2/2]

void a_point2::x ( double  v)
inline

Definition at line 57 of file a_point2.h.

◆ y() [1/2]

double a_point2::y ( ) const
inline

Definition at line 53 of file a_point2.h.

+ Here is the caller graph for this function:

◆ y() [2/2]

void a_point2::y ( double  v)
inline

Definition at line 58 of file a_point2.h.

Member Data Documentation

◆ x_

double a_point2::x_
protected

Definition at line 86 of file a_point2.h.

◆ y_

double a_point2::y_
protected

Definition at line 87 of file a_point2.h.


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