TinyGPU
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
WireFrame3D< RGB_T >::Vec3 Struct Reference

Represents a 3D point or vector. More...

#include <WireFrame3D.h>

Public Member Functions

Vec3 operator+ (const Vec3 &other) const
 
Vec3 operator- (const Vec3 &other) const
 
Vec3 operator* (float scalar) const
 
Vec3 operator/ (float scalar) const
 

Public Attributes

float x = 0.0f
 
float y = 0.0f
 
float z = 0.0f
 

Detailed Description

template<typename RGB_T = RGB565>
struct tinygpu::WireFrame3D< RGB_T >::Vec3

Represents a 3D point or vector.

Member Function Documentation

◆ operator*()

Vec3 operator* ( float  scalar) const
inline

◆ operator+()

Vec3 operator+ ( const Vec3 other) const
inline

◆ operator-()

Vec3 operator- ( const Vec3 other) const
inline

◆ operator/()

Vec3 operator/ ( float  scalar) const
inline

Member Data Documentation

◆ x

float x = 0.0f

◆ y

float y = 0.0f

◆ z

float z = 0.0f

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