KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
kjb::qd::RatPoint Struct Reference

very basic structure to represent X, Y points with rational coords. More...

#include <ratpoint.h>

Public Types

typedef boost::rational< long
long > 
Rat
 

Public Member Functions

 RatPoint (const PixPoint &p)
 construct from one PixPoint (just copy it) More...
 
 RatPoint (const Rat &rx, const Rat &ry)
 construct from two rational cartesian coordinates More...
 

Public Attributes

Rat x
 
Rat y
 

Detailed Description

very basic structure to represent X, Y points with rational coords.

Member Typedef Documentation

typedef boost::rational< long long > kjb::qd::RatPoint::Rat

Constructor & Destructor Documentation

kjb::qd::RatPoint::RatPoint ( const PixPoint p)
inline

construct from one PixPoint (just copy it)

kjb::qd::RatPoint::RatPoint ( const Rat rx,
const Rat ry 
)
inline

construct from two rational cartesian coordinates

Member Data Documentation

Rat kjb::qd::RatPoint::x
Rat kjb::qd::RatPoint::y

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