papyrus logo

Papyrus::Point Struct Reference

A very simple point primitive with x and y values as doubles. More...

#include <primitives.h>

Inheritance diagram for Papyrus::Point:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Point (double xval=0.0, double yval=0.0)
 Point (const Point &p)
void invalidate ()
virtual operator bool ()

Public Attributes

double x
double y

Detailed Description

A very simple point primitive with x and y values as doubles.

Provides for invalidation and boolean tests of invalidation using the NAN constant.


Constructor & Destructor Documentation

Papyrus::Point::Point ( double  xval = 0.0,
double  yval = 0.0 
) [inline]
Papyrus::Point::Point ( const Point p  )  [inline]

Reimplemented in Papyrus::LinearGradient::Point.


Member Function Documentation

void Papyrus::Point::invalidate (  )  [inline]

References x, and y.

Referenced by Papyrus::LinearGradient::Vector::invalidate().

virtual Papyrus::Point::operator bool (  )  [inline, virtual]

Reimplemented in Papyrus::RadialGradient::Circle.

References x, and y.


Member Data Documentation


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

Generated on Fri Apr 16 12:41:08 2010 for papyrus by doxygen 1.6.1