DGtal  1.0.0
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 ()

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.

## ◆ 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
 x0 slope of the ray y0 intercept 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
 p numerator of the point x-coordinate q denominator of the point x- and y-coordinates r numerator of the point y-coordinate slope slope of the ray

## ◆ ~RayC()

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

## ◆ 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: