move::vectormath::gpuvec3 struct
#include <gpuvec3.hpp>

A 3D vector that is guaranteed to be correctly laid out for GPU usage.

This is a 3D vector that is guaranteed to be correctly laid out for GPU usage. It should be used whenever a 3D vector is needed for GPU usage.

Constructors, destructors, conversion operators

gpuvec3() defaulted
gpuvec3(const gpuvec3&) defaulted
gpuvec3(gpuvec3&&) defaulted
gpuvec3(const vec3f& v)
gpuvec3(const vec3d& v)
gpuvec3(float x, float y, float z)
Constructs a gpuvec3 with the given x and y values.
operator vec3f() const
operator vec3d() const

Public functions

auto operator=(const gpuvec3&) -> gpuvec3& defaulted
auto operator=(gpuvec3&&) -> gpuvec3& defaulted
auto as_array() -> float*

Public variables

float x
float y
float z

Function documentation

move::vectormath::gpuvec3::gpuvec3(float x, float y, float z)

Constructs a gpuvec3 with the given x and y values.

Parameters
x The x value of the gpuvec3.
y The y value of the gpuvec3.
z