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_point Class Reference

#include <a_point.h>

+ Inheritance diagram for a_point:
+ Collaboration diagram for a_point:

Public Member Functions

 a_point ()=default
 
 a_point (double x, double y, double z)
 
 a_point (const float x[3])
 
 a_point (const double x[3])
 
 a_point (const a_point &p)
 
virtual const std::string classname ()
 
double x () const
 
double y () const
 
double z () const
 
double operator[] (const int i) const
 
void x (double v)
 
void y (double v)
 
void z (double v)
 
void set (double x, double y, double z)
 
void set (double x[3])
 
void set (float x[3])
 
a_mat_sq inertia () const
 
void set_cylindrical (double r, double a, double h)
 
void set_spherical (double r, double th, double ph)
 
void clear ()
 
a_pointtranslate (double x, double y, double z)
 
a_pointrotate (const a_point &x_axis, const a_point &y_axis, const a_point &z_axis)
 
a_pointrotate (const a_point &axis, const double angle)
 
double & operator[] (const int i)
 
bool operator== (const a_point &p) const
 
bool operator!= (const a_point &p) const
 
a_pointoperator= (const a_point &p)
 
a_pointoperator- ()
 
a_point operator+ (const a_point &)
 
a_point operator- (const a_point &)
 
double operator* (const a_point &)
 
a_point cross (const a_point &) const
 
a_pointoperator+= (const a_point &)
 
a_pointoperator-= (const a_point &)
 
double operator*= (const a_point &)
 
a_pointoperator*= (double v)
 
a_pointoperator/= (double v)
 
a_pointoperator/= (const a_point &)
 
double sumsq () const
 
double norm () const
 
double norm1 () const
 
double norm2 () const
 
double normI () const
 
double dist (const a_point &p) const
 
a_pointnormalise ()
 
a_pointmax ()
 set maximum abs value of component to 1. More...
 
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_ = 0.
 
double y_ = 0.
 
double z_ = 0.
 
- Protected Attributes inherited from a_base
double verysmall_
 

Detailed Description

Definition at line 42 of file a_point.h.

Constructor & Destructor Documentation

◆ a_point() [1/5]

a_point::a_point ( )
default

◆ a_point() [2/5]

a_point::a_point ( double  x,
double  y,
double  z 
)
inline

Definition at line 46 of file a_point.h.

◆ a_point() [3/5]

a_point::a_point ( const float  x[3])
inline

Definition at line 47 of file a_point.h.

◆ a_point() [4/5]

a_point::a_point ( const double  x[3])
inline

Definition at line 48 of file a_point.h.

◆ a_point() [5/5]

a_point::a_point ( const a_point p)
inline

Definition at line 49 of file a_point.h.

Member Function Documentation

◆ classname()

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

return class name: should be overridden by children classes

Reimplemented from a_geom_base.

Definition at line 51 of file a_point.h.

◆ clear()

void a_point::clear ( )
inline

Definition at line 69 of file a_point.h.

+ Here is the call graph for this function:

◆ cross()

a_point a_point::cross ( const a_point p) const

Definition at line 96 of file a_point.cxx.

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

◆ dist()

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

Maximum norm

Definition at line 96 of file a_point.h.

+ Here is the caller graph for this function:

◆ help()

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

Definition at line 22 of file a_point.cxx.

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

◆ inertia()

a_mat_sq a_point::inertia ( ) const

Definition at line 197 of file a_point.cxx.

+ Here is the caller graph for this function:

◆ max()

a_point & a_point::max ( )

set maximum abs value of component to 1.

Definition at line 214 of file a_point.cxx.

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

◆ norm()

double a_point::norm ( ) const

Definition at line 168 of file a_point.cxx.

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

◆ norm1()

double a_point::norm1 ( ) const

Definition at line 172 of file a_point.cxx.

◆ norm2()

double a_point::norm2 ( ) const

Taxi cab norm

Definition at line 176 of file a_point.cxx.

+ Here is the call graph for this function:

◆ normalise()

a_point & a_point::normalise ( )

Definition at line 190 of file a_point.cxx.

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

◆ normI()

double a_point::normI ( ) const

Euclidian norm

Definition at line 180 of file a_point.cxx.

+ Here is the call graph for this function:

◆ operator!=()

bool a_point::operator!= ( const a_point p) const
inline

Definition at line 76 of file a_point.h.

+ Here is the call graph for this function:

◆ operator*()

double a_point::operator* ( const a_point p)

Definition at line 91 of file a_point.cxx.

+ Here is the call graph for this function:

◆ operator*=() [1/2]

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

Definition at line 129 of file a_point.cxx.

+ Here is the call graph for this function:

◆ operator*=() [2/2]

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

Definition at line 147 of file a_point.cxx.

◆ operator+()

a_point a_point::operator+ ( const a_point p)

Definition at line 79 of file a_point.cxx.

◆ operator+=()

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

Definition at line 113 of file a_point.cxx.

+ Here is the call graph for this function:

◆ operator-() [1/2]

a_point & a_point::operator- ( )

Definition at line 71 of file a_point.cxx.

◆ operator-() [2/2]

a_point a_point::operator- ( const a_point p)

Definition at line 85 of file a_point.cxx.

◆ operator-=()

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

Definition at line 121 of file a_point.cxx.

+ Here is the call graph for this function:

◆ operator/=() [1/2]

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

◆ operator/=() [2/2]

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

Definition at line 155 of file a_point.cxx.

+ Here is the caller graph for this function:

◆ operator=()

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

Definition at line 139 of file a_point.cxx.

+ Here is the call graph for this function:

◆ operator==()

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

Definition at line 134 of file a_point.cxx.

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

◆ operator[]() [1/2]

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

Definition at line 73 of file a_point.h.

◆ operator[]() [2/2]

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

Definition at line 57 of file a_point.h.

◆ read()

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

read object from stream: should be overridden by children classes

Reimplemented from a_base.

Definition at line 315 of file a_point.cxx.

◆ rotate() [1/2]

a_point & a_point::rotate ( const a_point axis,
const double  angle 
)

Definition at line 234 of file a_point.cxx.

+ Here is the call graph for this function:

◆ rotate() [2/2]

a_point & a_point::rotate ( const a_point x_axis,
const a_point y_axis,
const a_point z_axis 
)

Definition at line 225 of file a_point.cxx.

+ Here is the caller graph for this function:

◆ set() [1/3]

void a_point::set ( double  x,
double  y,
double  z 
)
inline

Definition at line 63 of file a_point.h.

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

◆ set() [2/3]

void a_point::set ( double  x[3])
inline

Definition at line 64 of file a_point.h.

+ Here is the call graph for this function:

◆ set() [3/3]

void a_point::set ( float  x[3])
inline

Definition at line 65 of file a_point.h.

+ Here is the call graph for this function:

◆ set_cylindrical()

void a_point::set_cylindrical ( double  r,
double  a,
double  h 
)
inline

Definition at line 67 of file a_point.h.

◆ set_spherical()

void a_point::set_spherical ( double  r,
double  th,
double  ph 
)
inline

Definition at line 68 of file a_point.h.

◆ sumsq()

double a_point::sumsq ( ) const

Definition at line 163 of file a_point.cxx.

+ Here is the caller graph for this function:

◆ translate()

a_point& a_point::translate ( double  x,
double  y,
double  z 
)
inline

Definition at line 70 of file a_point.h.

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

◆ write()

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

write object to stream: should be overridden by children classes

Reimplemented from a_base.

Definition at line 322 of file a_point.cxx.

+ Here is the call graph for this function:

◆ x() [1/2]

double a_point::x ( ) const
inline

Definition at line 54 of file a_point.h.

+ Here is the caller graph for this function:

◆ x() [2/2]

void a_point::x ( double  v)
inline

Definition at line 60 of file a_point.h.

◆ y() [1/2]

double a_point::y ( ) const
inline

Definition at line 55 of file a_point.h.

+ Here is the caller graph for this function:

◆ y() [2/2]

void a_point::y ( double  v)
inline

Definition at line 61 of file a_point.h.

◆ z() [1/2]

double a_point::z ( ) const
inline

Definition at line 56 of file a_point.h.

+ Here is the caller graph for this function:

◆ z() [2/2]

void a_point::z ( double  v)
inline

Definition at line 62 of file a_point.h.

Member Data Documentation

◆ x_

double a_point::x_ = 0.
protected

x coordinate of the point

Definition at line 106 of file a_point.h.

◆ y_

double a_point::y_ = 0.
protected

y coordinate of the point

Definition at line 107 of file a_point.h.

◆ z_

double a_point::z_ = 0.
protected

z coordinate of the point

Definition at line 108 of file a_point.h.


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