struct
Vec4
- Module
- Math
- Header
#include "Math/Vec4.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
float x, y, z, | w |
Constructors
| Signature | Name | Description |
|---|---|---|
Vec4() : x(0), y(0), z(0), w(0) | Vec4 | |
Vec4(float x, float y, float z, float w) : x(x), y(y), z(z), w(w) | Vec4 | |
Vec4(const Vec3& v, float w) : x(v.x), y(v.y), z(v.z), w(w) | Vec4 | |
explicit Vec4(float scalar) : x(scalar), y(scalar), z(scalar), w(scalar) | Vec4 |
Public functions
| Returns | Name | Description |
|---|---|---|
Vec4 | operator+ | |
Vec4 | operator- | |
Vec4 | operator* | |
Vec4 | operator/ | |
Vec4& | operator+= | |
Vec4& | operator-= | |
Vec4& | operator*= | |
Vec3 | xyz | |
float | Dot | |
Vec4 | Lerp |
Function details
Vec4
C++
Vec4() : x(0), y(0), z(0), w(0)Vec4
C++
Vec4(float x, float y, float z, float w) : x(x), y(y), z(z), w(w)Vec4
C++
Vec4(const Vec3& v, float w) : x(v.x), y(v.y), z(v.z), w(w)Vec4
C++
explicit Vec4(float scalar) : x(scalar), y(scalar), z(scalar), w(scalar)operator+
C++
Vec4 operator+(const Vec4& other) constoperator-
C++
Vec4 operator-(const Vec4& other) constoperator*
C++
Vec4 operator*(float scalar) constoperator/
C++
Vec4 operator/(float scalar) constoperator+=
C++
Vec4& operator+=(const Vec4& other)operator-=
C++
Vec4& operator-=(const Vec4& other)operator*=
C++
Vec4& operator*=(float scalar)xyz
C++
Vec3 xyz() constDot
C++
static float Dot(const Vec4& a, const Vec4& b)Lerp
C++
static Vec4 Lerp(const Vec4& a, const Vec4& b, float t)Generated from Math/Vec4.h via math.json · Nov 4, 2026Version 1.0.0