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

a plane More...

#include <a_plane.h>

+ Inheritance diagram for a_plane:
+ Collaboration diagram for a_plane:

Classes

class  plane_parallel_error
 
class  segment_parallel_error
 

Public Member Functions

 a_plane ()
 
 a_plane (const a_point &p1, const a_point &p2, const a_point &p3)
 plane defined by three points More...
 
 a_plane (const a_plane &p)
 
virtual const std::string classname ()
 
a_point n () const
 normal to the plane (direction: given by rotation p1-p2-p3) More...
 
double d0 () const
 closest distance to origin More...
 
void d0 (const double d)
 
a_point p0 () const
 closest point to origin More...
 
double dist (const a_point &p) const
 distance between p and plane More...
 
a_point closest (const a_point &p) const
 point on the plane closest to p More...
 
a_point intersect (const a_segment &s) const
 intersection of plane with a segment More...
 
a_segment intersect (const a_plane &p) const
 intersection of plane with another plane More...
 
bool contains (const a_point &p) const
 check whether point is in plane More...
 
void move (a_coord c)
 
virtual void read (std::istream &i)
 
virtual void write (std::ostream &o) const
 
- Public Member Functions inherited from a_3dh
 a_3dh ()
 
 a_3dh (double x, double y, double z, double t=1.)
 
 a_3dh (double *x)
 
 a_3dh (const a_point &p)
 
 a_3dh (const a_mat &m)
 
void set (double x, double y, double z, double t=1.)
 
void set (double *x)
 
void set (const a_point &p)
 
a_point point () const
 
void X (double v)
 
void Y (double v)
 
void Z (double v)
 
void T (double v)
 
double X () const
 
double Y () const
 
double Z () const
 
double T () const
 
double x () const
 
double y () const
 
double z () const
 
- Public Member Functions inherited from a_mat_c
 a_mat_c (UI i, double v=0)
 
 a_mat_c (int i, double v=0)
 
a_mat_coperator= (const a_mat &m)
 
double & operator() (const UI i)
 
double operator() (const UI i) const
 
double sumsq () const
 
double norm () const
 
void normalise ()
 
- Public Member Functions inherited from a_mat
 a_mat (UI i, UI j, double v=0)
 
 a_mat (int i, int j, double v=0)
 
 a_mat (const a_mat &m)
 
 ~a_mat ()
 
UI maxi () const
 
UI maxj () const
 
UI size () const
 
std::valarray< double > & x () const
 
virtual double & operator() (const UI i, const UI j)
 
virtual double operator() (const UI i, const UI j) const
 
a_matoperator= (const a_mat &m)
 
bool operator== (const a_mat &a)
 
a_matoperator- ()
 
a_matoperator+= (const a_mat &a)
 
a_mat operator+ (const a_mat &a)
 
a_matoperator-= (const a_mat &a)
 
a_mat operator- (const a_mat &a)
 
a_matoperator*= (double v)
 
a_mat operator* (double v)
 
a_matoperator/= (double v)
 
a_mat operator/ (double v)
 
a_mat transpose ()
 
void swapc (UI c1, UI c2)
 
void swapr (UI r1, UI r2)
 
a_mat sub_matrix (const UI i, const UI j) 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_3dh
static const std::string help ()
 
- Static Public Member Functions inherited from a_mat_base
static const std::string help ()
 
- Static Public Member Functions inherited from a_base
static const std::string help ()
 

Friends

std::istream & operator>> (std::istream &i, a_plane &m)
 
std::ostream & operator<< (std::ostream &o, const a_plane &m)
 

Additional Inherited Members

- Protected Attributes inherited from a_mat
UI maxi_
 
UI maxj_
 
std::valarray< double > * x_
 
- Protected Attributes inherited from a_base
double verysmall_
 

Detailed Description

a plane

Author
P.Smars
Date
2007-2017

Definition at line 31 of file a_plane.h.

Constructor & Destructor Documentation

◆ a_plane() [1/3]

a_plane::a_plane ( )
inline

Definition at line 34 of file a_plane.h.

◆ a_plane() [2/3]

a_plane::a_plane ( const a_point p1,
const a_point p2,
const a_point p3 
)

plane defined by three points

(X,Y,Z: normal to plane)

T:distance from (0,0,0) to plane in direction of n

Definition at line 46 of file a_plane.cxx.

+ Here is the call graph for this function:

◆ a_plane() [3/3]

a_plane::a_plane ( const a_plane p)
inline

Definition at line 37 of file a_plane.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ classname()

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

return class name: should be overridden by children classes

Reimplemented from a_mat_base.

Definition at line 38 of file a_plane.h.

◆ closest()

a_point a_plane::closest ( const a_point p) const

point on the plane closest to p

Definition at line 71 of file a_plane.cxx.

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

◆ contains()

bool a_plane::contains ( const a_point p) const

check whether point is in plane

Definition at line 113 of file a_plane.cxx.

+ Here is the call graph for this function:

◆ d0() [1/2]

double a_plane::d0 ( ) const
inline

closest distance to origin

Definition at line 43 of file a_plane.h.

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

◆ d0() [2/2]

void a_plane::d0 ( const double  d)
inline

Definition at line 44 of file a_plane.h.

+ Here is the call graph for this function:

◆ dist()

double a_plane::dist ( const a_point p) const

distance between p and plane

Definition at line 66 of file a_plane.cxx.

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

◆ help()

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

Definition at line 22 of file a_plane.cxx.

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

◆ intersect() [1/2]

a_segment a_plane::intersect ( const a_plane p) const

intersection of plane with another plane

Definition at line 89 of file a_plane.cxx.

+ Here is the call graph for this function:

◆ intersect() [2/2]

a_point a_plane::intersect ( const a_segment s) const

intersection of plane with a segment

Definition at line 76 of file a_plane.cxx.

+ Here is the call graph for this function:

◆ move()

void a_plane::move ( a_coord  c)

Definition at line 120 of file a_plane.cxx.

+ Here is the call graph for this function:

◆ n()

a_point a_plane::n ( ) const

normal to the plane (direction: given by rotation p1-p2-p3)

Definition at line 56 of file a_plane.cxx.

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

◆ p0()

a_point a_plane::p0 ( ) const

closest point to origin

Definition at line 61 of file a_plane.cxx.

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

◆ read()

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

read object from stream: should be overridden by children classes

Reimplemented from a_mat.

Definition at line 137 of file a_plane.cxx.

+ Here is the call graph for this function:

◆ write()

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

write object to stream: should be overridden by children classes

Reimplemented from a_mat.

Definition at line 147 of file a_plane.cxx.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
const a_plane m 
)
friend

Definition at line 161 of file a_plane.cxx.

◆ operator>>

std::istream& operator>> ( std::istream &  i,
a_plane m 
)
friend

Definition at line 155 of file a_plane.cxx.


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