PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::TPoint2D< Real > Class Template Reference

0D geometric primitive in two-dimensional space More...

#include <Primitive2D.h>

Collaboration diagram for dyno::TPoint2D< Real >:

Public Types

typedef Vector< Real, 2 > Coord2D
 

Public Member Functions

DYN_FUNC TPoint2D ()
 
DYN_FUNC TPoint2D (const Real &c0, const Real &c1)
 
DYN_FUNC TPoint2D (const TPoint2D &pt)
 
DYN_FUNC TPoint2Doperator= (const Coord2D &p)
 
DYN_FUNC TPoint2D (const Real &val)
 
DYN_FUNC TPoint2D (const Coord2D &pos)
 
DYN_FUNC TPoint2D< Realproject (const TLine2D< Real > &line) const
 project a point onto linear components – lines, rays and segments
 
DYN_FUNC TPoint2D< Realproject (const TRay2D< Real > &ray) const
 
DYN_FUNC TPoint2D< Realproject (const TSegment2D< Real > &segment) const
 
DYN_FUNC TPoint2D< Realproject (const TCircle2D< Real > &circle) const
 
DYN_FUNC Real distance (const TPoint2D< Real > &pt) const
 
DYN_FUNC Real distance (const TLine2D< Real > &line) const
 
DYN_FUNC Real distance (const TRay2D< Real > &ray) const
 
DYN_FUNC Real distance (const TSegment2D< Real > &segment) const
 
DYN_FUNC Real distance (const TCircle2D< Real > &circle) const
 
DYN_FUNC Real distanceSquared (const TPoint2D< Real > &pt) const
 
DYN_FUNC Real distanceSquared (const TLine2D< Real > &line) const
 
DYN_FUNC Real distanceSquared (const TRay2D< Real > &ray) const
 
DYN_FUNC Real distanceSquared (const TSegment2D< Real > &segment) const
 
DYN_FUNC Real distanceSquared (const TCircle2D< Real > &circle) const
 
DYN_FUNC bool inside (const TLine2D< Real > &line) const
 check whether a point strictly lies inside (excluding boundary) a 1D geometric primitive
 
DYN_FUNC bool inside (const TRay2D< Real > &ray) const
 
DYN_FUNC bool inside (const TSegment2D< Real > &segment) const
 
DYN_FUNC bool inside (const TCircle2D< Real > &circle) const
 
DYN_FUNC const TSegment2D< Realoperator- (const TPoint2D< Real > &pt) const
 

Public Attributes

Coord2D origin
 

Detailed Description

template<typename Real>
class dyno::TPoint2D< Real >

0D geometric primitive in two-dimensional space

Definition at line 50 of file Primitive2D.h.

Member Typedef Documentation

◆ Coord2D

template<typename Real>
typedef Vector<Real, 2> dyno::TPoint2D< Real >::Coord2D

Definition at line 53 of file Primitive2D.h.

Constructor & Destructor Documentation

◆ TPoint2D() [1/5]

template<typename Real>
DYN_FUNC dyno::TPoint2D< Real >::TPoint2D ( )

Definition at line 9 of file Primitive2D.inl.

Here is the caller graph for this function:

◆ TPoint2D() [2/5]

template<typename Real>
DYN_FUNC dyno::TPoint2D< Real >::TPoint2D ( const Real & c0,
const Real & c1 )

Definition at line 21 of file Primitive2D.inl.

◆ TPoint2D() [3/5]

template<typename Real>
DYN_FUNC dyno::TPoint2D< Real >::TPoint2D ( const TPoint2D< Real > & pt)

Definition at line 33 of file Primitive2D.inl.

Here is the call graph for this function:

◆ TPoint2D() [4/5]

template<typename Real>
DYN_FUNC dyno::TPoint2D< Real >::TPoint2D ( const Real & val)
explicit

Definition at line 15 of file Primitive2D.inl.

◆ TPoint2D() [5/5]

template<typename Real>
DYN_FUNC dyno::TPoint2D< Real >::TPoint2D ( const Coord2D & pos)
explicit

Definition at line 27 of file Primitive2D.inl.

Member Function Documentation

◆ distance() [1/5]

template<typename Real>
DYN_FUNC Real dyno::TPoint2D< Real >::distance ( const TCircle2D< Real > & circle) const

Definition at line 123 of file Primitive2D.inl.

◆ distance() [2/5]

template<typename Real>
DYN_FUNC Real dyno::TPoint2D< Real >::distance ( const TLine2D< Real > & line) const

Definition at line 105 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distance() [3/5]

template<typename Real>
DYN_FUNC Real dyno::TPoint2D< Real >::distance ( const TPoint2D< Real > & pt) const

Definition at line 99 of file Primitive2D.inl.

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

◆ distance() [4/5]

template<typename Real>
DYN_FUNC Real dyno::TPoint2D< Real >::distance ( const TRay2D< Real > & ray) const

Definition at line 111 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distance() [5/5]

template<typename Real>
DYN_FUNC Real dyno::TPoint2D< Real >::distance ( const TSegment2D< Real > & segment) const

Definition at line 117 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distanceSquared() [1/5]

template<typename Real>
DYN_FUNC Real dyno::TPoint2D< Real >::distanceSquared ( const TCircle2D< Real > & circle) const

Definition at line 153 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distanceSquared() [2/5]

template<typename Real>
DYN_FUNC Real dyno::TPoint2D< Real >::distanceSquared ( const TLine2D< Real > & line) const

Definition at line 135 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distanceSquared() [3/5]

template<typename Real>
DYN_FUNC Real dyno::TPoint2D< Real >::distanceSquared ( const TPoint2D< Real > & pt) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ distanceSquared() [4/5]

template<typename Real>
DYN_FUNC Real dyno::TPoint2D< Real >::distanceSquared ( const TRay2D< Real > & ray) const

Definition at line 141 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distanceSquared() [5/5]

template<typename Real>
DYN_FUNC Real dyno::TPoint2D< Real >::distanceSquared ( const TSegment2D< Real > & segment) const

Definition at line 147 of file Primitive2D.inl.

Here is the call graph for this function:

◆ inside() [1/4]

template<typename Real>
DYN_FUNC bool dyno::TPoint2D< Real >::inside ( const TCircle2D< Real > & circle) const

Definition at line 199 of file Primitive2D.inl.

◆ inside() [2/4]

template<typename Real>
DYN_FUNC bool dyno::TPoint2D< Real >::inside ( const TLine2D< Real > & line) const

check whether a point strictly lies inside (excluding boundary) a 1D geometric primitive

Parameters
line/ray/segment1D geometric primitives
Returns
true if a point is inside the geometric primitive, otherwise return false

Definition at line 159 of file Primitive2D.inl.

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

◆ inside() [3/4]

template<typename Real>
DYN_FUNC bool dyno::TPoint2D< Real >::inside ( const TRay2D< Real > & ray) const

Definition at line 170 of file Primitive2D.inl.

Here is the call graph for this function:

◆ inside() [4/4]

template<typename Real>
DYN_FUNC bool dyno::TPoint2D< Real >::inside ( const TSegment2D< Real > & segment) const

Definition at line 184 of file Primitive2D.inl.

Here is the call graph for this function:

◆ operator-()

template<typename Real>
DYN_FUNC const TSegment2D< Real > dyno::TPoint2D< Real >::operator- ( const TPoint2D< Real > & pt) const

Definition at line 205 of file Primitive2D.inl.

Here is the call graph for this function:

◆ operator=()

template<typename Real>
DYN_FUNC TPoint2D< Real > & dyno::TPoint2D< Real >::operator= ( const Coord2D & p)

Definition at line 39 of file Primitive2D.inl.

Here is the call graph for this function:

◆ project() [1/4]

template<typename Real>
DYN_FUNC TPoint2D< Real > dyno::TPoint2D< Real >::project ( const TCircle2D< Real > & circle) const

Definition at line 90 of file Primitive2D.inl.

Here is the call graph for this function:

◆ project() [2/4]

template<typename Real>
DYN_FUNC TPoint2D< Real > dyno::TPoint2D< Real >::project ( const TLine2D< Real > & line) const

project a point onto linear components – lines, rays and segments

Parameters
line/ray/segmentlinear components
Returns
closest point

Definition at line 46 of file Primitive2D.inl.

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

◆ project() [3/4]

template<typename Real>
DYN_FUNC TPoint2D< Real > dyno::TPoint2D< Real >::project ( const TRay2D< Real > & ray) const

Definition at line 57 of file Primitive2D.inl.

Here is the call graph for this function:

◆ project() [4/4]

template<typename Real>
DYN_FUNC TPoint2D< Real > dyno::TPoint2D< Real >::project ( const TSegment2D< Real > & segment) const

Definition at line 71 of file Primitive2D.inl.

Here is the call graph for this function:

Member Data Documentation

◆ origin

template<typename Real>
Coord2D dyno::TPoint2D< Real >::origin

Definition at line 102 of file Primitive2D.h.


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