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

#include <Primitive2D.h>

Collaboration diagram for dyno::TRay2D< Real >:

Classes

struct  Param
 

Public Types

typedef Vector< Real, 2 > Coord2D
 

Public Member Functions

DYN_FUNC TRay2D ()
 
DYN_FUNC TRay2D (const Coord2D &pos, const Coord2D &dir)
 
DYN_FUNC TRay2D (const TRay2D< Real > &ray)
 
DYN_FUNC TSegment2D< Realproximity (const TRay2D< Real > &ray) const
 
DYN_FUNC TSegment2D< Realproximity (const TSegment2D< Real > &segment) const
 
DYN_FUNC Real distance (const TPoint2D< Real > &pt) const
 
DYN_FUNC Real distance (const TSegment2D< Real > &segment) const
 
DYN_FUNC Real distanceSquared (const TPoint2D< Real > &pt) const
 
DYN_FUNC Real distanceSquared (const TSegment2D< Real > &segment) const
 
DYN_FUNC int intersect (const TCircle2D< Real > &sphere, 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::TRay2D< Real >

Definition at line 150 of file Primitive2D.h.

Member Typedef Documentation

◆ Coord2D

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

Definition at line 153 of file Primitive2D.h.

Constructor & Destructor Documentation

◆ TRay2D() [1/3]

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

Definition at line 444 of file Primitive2D.inl.

Here is the caller graph for this function:

◆ TRay2D() [2/3]

template<typename Real>
DYN_FUNC dyno::TRay2D< Real >::TRay2D ( const Coord2D & pos,
const Coord2D & dir )
Parameters
pos
||dir||= 0 indicates the ray degenerates into a point
Returns
DYN_FUNC

Definition at line 451 of file Primitive2D.inl.

◆ TRay2D() [3/3]

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

Definition at line 458 of file Primitive2D.inl.

Here is the call graph for this function:

Member Function Documentation

◆ distance() [1/2]

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

Definition at line 586 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distance() [2/2]

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

Definition at line 592 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distanceSquared() [1/2]

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

Definition at line 598 of file Primitive2D.inl.

Here is the call graph for this function:

◆ distanceSquared() [2/2]

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

Definition at line 604 of file Primitive2D.inl.

Here is the call graph for this function:

◆ intersect()

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

Definition at line 610 of file Primitive2D.inl.

Here is the call graph for this function:

◆ isValid()

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

Definition at line 663 of file Primitive2D.inl.

◆ parameter()

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

Definition at line 654 of file Primitive2D.inl.

◆ proximity() [1/2]

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

Definition at line 465 of file Primitive2D.inl.

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

◆ proximity() [2/2]

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

Definition at line 516 of file Primitive2D.inl.

Here is the call graph for this function:

Member Data Documentation

◆ direction

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

Definition at line 191 of file Primitive2D.h.

◆ origin

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

Definition at line 188 of file Primitive2D.h.


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