pbpt
Loading...
Searching...
No Matches
point.hpp File Reference

Defines a generic, N-dimensional Point class and its geometric operations. More...

#include "math/function.hpp"
#include "vector.hpp"

Go to the source code of this file.

Classes

class  pbpt::math::Point< T, N >
 A template class for an N-dimensional point in space. More...

Namespaces

namespace  pbpt::math
 The namespace for math library implementation.

Typedefs

using pbpt::math::Pt2 = Point<Float, 2>
 A 2-dimensional point of type Float.
using pbpt::math::Pt3 = Point<Float, 3>
 A 3-dimensional point of type Float.
using pbpt::math::Pt4 = Point<Float, 4>
 A 4-dimensional point of type Float.

Detailed Description

Defines a generic, N-dimensional Point class and its geometric operations.

This file provides a Point class that represents a location in N-dimensional space. It is designed to work in tandem with the Vec class, enforcing a strict conceptual separation between points (locations) and vectors (displacements). The operators are overloaded to reflect valid affine geometry operations, such as Point - Point = Vector and Point + Vector = Point.