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

#include <Primitive2D.h>

Collaboration diagram for dyno::TSegment2D< Real >:

Public Types

typedef Vector< Real, 2 > Coord2D
 

Public Member Functions

DYN_FUNC TSegment2D ()
 
DYN_FUNC TSegment2D (const Coord2D &p0, const Coord2D &p1)
 
DYN_FUNC TSegment2D (const TSegment2D< Real > &segment)
 
DYN_FUNC TSegment2D< Realproximity (const TSegment2D< Real > &segment) const
 
DYN_FUNC Real distance (const TSegment2D< Real > &segment) const
 
DYN_FUNC Real distanceSquared (const TSegment2D< Real > &segment) const
 
DYN_FUNC Real length () const
 
DYN_FUNC Real lengthSquared () const
 
DYN_FUNC int intersect (const TCircle2D< Real > &circle, TSegment2D< Real > &interSeg) const
 
DYN_FUNC Real parameter (const Coord2D &pos) const
 
DYN_FUNC Coord2DstartPoint ()
 
DYN_FUNC Coord2DendPoint ()
 
DYN_FUNC Coord2D startPoint () const
 
DYN_FUNC Coord2D endPoint () const
 
DYN_FUNC Coord2D direction () const
 
DYN_FUNC TSegment2D< Realoperator- (void) const
 
DYN_FUNC bool isValid () const
 

Public Attributes

Coord2D v0
 
Coord2D v1
 

Detailed Description

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

Definition at line 195 of file Primitive2D.h.

Member Typedef Documentation

◆ Coord2D

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

Definition at line 198 of file Primitive2D.h.

Constructor & Destructor Documentation

◆ TSegment2D() [1/3]

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

Definition at line 669 of file Primitive2D.inl.

Here is the caller graph for this function:

◆ TSegment2D() [2/3]

template<typename Real>
DYN_FUNC dyno::TSegment2D< Real >::TSegment2D ( const Coord2D & p0,
const Coord2D & p1 )

Definition at line 676 of file Primitive2D.inl.

◆ TSegment2D() [3/3]

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

Definition at line 683 of file Primitive2D.inl.

Here is the call graph for this function:

Member Function Documentation

◆ direction()

template<typename Real>
DYN_FUNC Coord2D dyno::TSegment2D< Real >::direction ( ) const
inline

Definition at line 224 of file Primitive2D.h.

Here is the caller graph for this function:

◆ distance()

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

Definition at line 775 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distanceSquared()

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

Definition at line 781 of file Primitive2D.inl.

Here is the call graph for this function:

◆ endPoint() [1/2]

template<typename Real>
DYN_FUNC Coord2D & dyno::TSegment2D< Real >::endPoint ( )
inline

Definition at line 219 of file Primitive2D.h.

Here is the caller graph for this function:

◆ endPoint() [2/2]

template<typename Real>
DYN_FUNC Coord2D dyno::TSegment2D< Real >::endPoint ( ) const
inline

Definition at line 222 of file Primitive2D.h.

◆ intersect()

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

Definition at line 799 of file Primitive2D.inl.

Here is the call graph for this function:

◆ isValid()

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

Definition at line 856 of file Primitive2D.inl.

Here is the call graph for this function:

◆ length()

template<typename Real>
DYN_FUNC Real dyno::TSegment2D< Real >::length ( ) const

Definition at line 787 of file Primitive2D.inl.

◆ lengthSquared()

template<typename Real>
DYN_FUNC Real dyno::TSegment2D< Real >::lengthSquared ( ) const

Definition at line 793 of file Primitive2D.inl.

Here is the caller graph for this function:

◆ operator-()

template<typename Real>
DYN_FUNC TSegment2D< Real > dyno::TSegment2D< Real >::operator- ( void ) const
inline

Definition at line 862 of file Primitive2D.inl.

Here is the call graph for this function:

◆ parameter()

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

Definition at line 846 of file Primitive2D.inl.

Here is the call graph for this function:

◆ proximity()

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

Definition at line 690 of file Primitive2D.inl.

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

◆ startPoint() [1/2]

template<typename Real>
DYN_FUNC Coord2D & dyno::TSegment2D< Real >::startPoint ( )
inline

Definition at line 218 of file Primitive2D.h.

Here is the caller graph for this function:

◆ startPoint() [2/2]

template<typename Real>
DYN_FUNC Coord2D dyno::TSegment2D< Real >::startPoint ( ) const
inline

Definition at line 221 of file Primitive2D.h.

Member Data Documentation

◆ v0

template<typename Real>
Coord2D dyno::TSegment2D< Real >::v0

Definition at line 230 of file Primitive2D.h.

◆ v1

template<typename Real>
Coord2D dyno::TSegment2D< Real >::v1

Definition at line 231 of file Primitive2D.h.


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