Orrery
A GPU-accelerated N-body gravitational simulator
Loading...
Searching...
No Matches
orrery::viz::Vec4 Struct Reference

A point or direction in homogeneous coordinates. More...

#include <orrery/viz/matrix4.hpp>

Public Member Functions

constexpr bool operator== (const Vec4 &) const =default

Public Attributes

float x {}
float y {}
float z {}
float w {}

Detailed Description

A point or direction in homogeneous coordinates.

Exists so that a transform can be applied to something and the result inspected, which is what the tests do and what a projection's w component is needed for. Rendering never constructs one: the vertex shader does that work on the device.


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