DGtal  0.9.4beta
Public Member Functions | Data Fields
DGtal::DSLSubsegment< TInteger, TNumber >::RayC Class Reference

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

Collaboration diagram for DGtal::DSLSubsegment< TInteger, TNumber >::RayC:
[legend]

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

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

Default constructor. not valid

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
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
template<typename TInteger , typename TNumber >
DGtal::DSLSubsegment< TInteger, TNumber >::RayC::~RayC ( )

Field Documentation

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

slope of the ray

Definition at line 242 of file DSLSubsegment.h.

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: