DGtal 1.4.0
Loading...
Searching...
No Matches
DGtal::DSLSubsegment< TInteger, TNumber >::RayC Class Reference

#include <DGtal/geometry/curves/DSLSubsegment.h>

Public Member Functions

 RayC ()
 
 RayC (const Integer x0, const Integer y0)
 
 RayC (const Integer p, const Integer q, const Integer r, const Integer slope)
 
 ~RayC ()
 

Data Fields

Integer x
 
Integer y
 

Detailed Description

template<typename TInteger, typename TNumber>
class DGtal::DSLSubsegment< TInteger, TNumber >::RayC

Class Ray Implements the concept of Ray in the dual space (alpha,beta)

Definition at line 234 of file DSLSubsegment.h.

Constructor & Destructor Documentation

◆ RayC() [1/3]

template<typename TInteger , typename TNumber >
DGtal::DSLSubsegment< TInteger, TNumber >::RayC::RayC ( )

Default constructor. not valid

◆ RayC() [2/3]

template<typename TInteger , typename TNumber >
DGtal::DSLSubsegment< TInteger, TNumber >::RayC::RayC ( const Integer x0,
const Integer y0 )

Constructor of the ray R(alpha,beta): beta = -alpha x0 + y0

Parameters
x0slope of the ray
y0intercept of the ray

◆ RayC() [3/3]

template<typename TInteger , typename TNumber >
DGtal::DSLSubsegment< TInteger, TNumber >::RayC::RayC ( const Integer p,
const Integer q,
const Integer r,
const Integer slope )

Constructor of the ray passing through the point (p/q,r/q) and of given slope

Parameters
pnumerator of the point x-coordinate
qdenominator of the point x- and y-coordinates
rnumerator of the point y-coordinate
slopeslope of the ray

◆ ~RayC()

template<typename TInteger , typename TNumber >
DGtal::DSLSubsegment< TInteger, TNumber >::RayC::~RayC ( )

Field Documentation

◆ x

template<typename TInteger , typename TNumber >
Integer DGtal::DSLSubsegment< TInteger, TNumber >::RayC::x

slope of the ray

Definition at line 242 of file DSLSubsegment.h.

◆ y

template<typename TInteger , typename TNumber >
Integer DGtal::DSLSubsegment< TInteger, TNumber >::RayC::y

intercept of the ray

Definition at line 247 of file DSLSubsegment.h.


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