Point.h File Reference
#include <cassert>
#include <iostream>
#include <vector>
#include "wonton/support/Vector.h"
#include "wonton/support/wonton.h"

Go to the source code of this file.

Classes

class  Wonton::Point< D >
 Represents a point in an N-dimensional space. More...
 

Namespaces

 Wonton
 Factorize a number N into D equal (or nearly equal) factors.
 

Typedefs

typedef Point< 3 > Wonton::Point3
 Alias for creating a Point in 3d. More...
 
typedef Point< 2 > Wonton::Point2
 Alias for creating a Point in 2d. More...
 
typedef Point< 1 > Wonton::Point1
 Alias for creating a Point in 1d. More...
 

Functions

template<int D>
std::ostream & Wonton::operator<< (std::ostream &os, const Point< D > &p)
 
template<int D>
WONTON_INLINE Point< D > Wonton::operator+ (const Point< D > &p, const Vector< D > &v)
 
template<int D>
WONTON_INLINE Point< D > Wonton::operator+ (const Point< D > &p1, const Point< D > &p2)
 
template<int D>
WONTON_INLINE Vector< D > Wonton::operator- (const Point< D > &p1, const Point< D > &p2)
 
template<int D>
WONTON_INLINE Point< D > Wonton::operator* (const Point< D > &p, double s)
 
template<int D>
WONTON_INLINE Point< D > Wonton::operator* (double s, const Point< D > &p)
 
template<int D>
WONTON_INLINE Point< D > Wonton::operator/ (const Point< D > &p, double s)
 
template<int D>
WONTON_INLINE bool Wonton::operator== (const Point< D > &p1, const Point< D > &p2)
 
template<int D>
WONTON_INLINE bool Wonton::approxEq (const Point< D > &p1, const Point< D > &p2, double tol=1.0e-8)
 
template<int D>
WONTON_INLINE bool Wonton::operator< (const Point< D > &p1, const Point< D > &p2)
 
WONTON_INLINE Point2 Wonton::ToCylindrical (const Point3 &p)
 
WONTON_INLINE Point3 Wonton::createP3 (double x, double y, double z)
 
WONTON_INLINE Point2 Wonton::createP2 (double x, double y)
 
WONTON_INLINE Point1 Wonton::createP1 (double x)
 

Variables

const int Wonton::X = 0
 
const int Wonton::Y = 1
 
const int Wonton::Z = 2