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

1D geometric primitives in two-dimensional space More...

#include <Primitive2D.h>

Collaboration diagram for dyno::TLine2D< Real >:

Public Types

typedef Vector< Real, 2 > Coord2D
 

Public Member Functions

DYN_FUNC TLine2D ()
 
DYN_FUNC TLine2D (const Coord2D &pos, const Coord2D &dir)
 
DYN_FUNC TLine2D (const TLine2D< Real > &line)
 
DYN_FUNC TSegment2D< Realproximity (const TLine2D< Real > &line) const
 
DYN_FUNC TSegment2D< Realproximity (const TRay2D< Real > &ray) const
 
DYN_FUNC TSegment2D< Realproximity (const TSegment2D< Real > &segment) const
 
DYN_FUNC TSegment2D< Realproximity (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 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 int intersect (const TCircle2D< Real > &circle, TSegment2D< Real > &interSeg) const
 
DYN_FUNC Real parameter (const Coord2D &pos) const
 
DYN_FUNC bool isValid () const
 

Public Attributes

Coord2D origin
 
Coord2D direction
 

Detailed Description

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

1D geometric primitives in two-dimensional space

Definition at line 106 of file Primitive2D.h.

Member Typedef Documentation

◆ Coord2D

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

Definition at line 109 of file Primitive2D.h.

Constructor & Destructor Documentation

◆ TLine2D() [1/3]

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

Definition at line 211 of file Primitive2D.inl.

Here is the caller graph for this function:

◆ TLine2D() [2/3]

template<typename Real>
DYN_FUNC dyno::TLine2D< Real >::TLine2D ( const Coord2D & pos,
const Coord2D & dir )
Parameters
pos
dir= 0 indicate the line degenerates into a point

Definition at line 218 of file Primitive2D.inl.

◆ TLine2D() [3/3]

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

Definition at line 225 of file Primitive2D.inl.

Here is the call graph for this function:

Member Function Documentation

◆ distance() [1/4]

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

Definition at line 360 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distance() [2/4]

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

Definition at line 354 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distance() [3/4]

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

Definition at line 366 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distance() [4/4]

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

Definition at line 372 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distanceSquared() [1/4]

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

Definition at line 384 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distanceSquared() [2/4]

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

Definition at line 378 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distanceSquared() [3/4]

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

Definition at line 390 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distanceSquared() [4/4]

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

Definition at line 396 of file Primitive2D.inl.

Here is the call graph for this function:

◆ intersect()

template<typename Real>
DYN_FUNC int dyno::TLine2D< Real >::intersect ( const TCircle2D< Real > & circle,
TSegment2D< Real > & interSeg ) const

Definition at line 402 of file Primitive2D.inl.

Here is the call graph for this function:

◆ isValid()

template<typename Real>
DYN_FUNC bool dyno::TLine2D< Real >::isValid ( ) const

Definition at line 438 of file Primitive2D.inl.

Here is the caller graph for this function:

◆ parameter()

template<typename Real>
DYN_FUNC Real dyno::TLine2D< Real >::parameter ( const Coord2D & pos) const

Definition at line 429 of file Primitive2D.inl.

◆ proximity() [1/4]

template<typename Real>
DYN_FUNC TSegment2D< Real > dyno::TLine2D< Real >::proximity ( const TCircle2D< Real > & circle) const

Definition at line 339 of file Primitive2D.inl.

Here is the call graph for this function:

◆ proximity() [2/4]

template<typename Real>
DYN_FUNC TSegment2D< Real > dyno::TLine2D< Real >::proximity ( const TLine2D< Real > & line) const

Definition at line 232 of file Primitive2D.inl.

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

◆ proximity() [3/4]

template<typename Real>
DYN_FUNC TSegment2D< Real > dyno::TLine2D< Real >::proximity ( const TRay2D< Real > & ray) const

Definition at line 258 of file Primitive2D.inl.

Here is the call graph for this function:

◆ proximity() [4/4]

template<typename Real>
DYN_FUNC TSegment2D< Real > dyno::TLine2D< Real >::proximity ( const TSegment2D< Real > & segment) const

Definition at line 295 of file Primitive2D.inl.

Here is the call graph for this function:

Member Data Documentation

◆ direction

template<typename Real>
Coord2D dyno::TLine2D< Real >::direction

Definition at line 146 of file Primitive2D.h.

◆ origin

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

Definition at line 143 of file Primitive2D.h.


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