|
PointSampler library (C++)
|
A fixed-size N-dimensional point/vector class. More...
#include <point.hpp>
Public Member Functions | |
| Point ()=default | |
| Point (const std::vector< T > &v) | |
| Point (std::initializer_list< T > init) | |
| Point (const std::array< T, N > &coords_) | |
| T & | operator[] (size_t i) |
| const T & | operator[] (size_t i) const |
| T & | x () |
| T & | y () |
| T & | z () |
| T & | w () |
| const T & | x () const |
| const T & | y () const |
| const T & | z () const |
| const T & | w () const |
Public Attributes | |
| std::array< T, N > | coords |
A fixed-size N-dimensional point/vector class.
Represents a geometric or algebraic point in N-dimensional space with coordinates of type T. Supports element-wise arithmetic operations, scalar math, and basic geometric functions such as dot product, length, normalization, and distance.
Designed for use in procedural generation, geometry processing, simulation, and graphics.