struct

Vec4

Module
Math
Header
#include "Math/Vec4.h"
Namespace
Mowo

Properties

TypeNameDescription
float x, y, z,w

Constructors

SignatureNameDescription
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

ReturnsNameDescription
Vec4operator+
Vec4operator-
Vec4operator*
Vec4operator/
Vec4&operator+=
Vec4&operator-=
Vec4&operator*=
Vec3xyz
floatDot
Vec4Lerp

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) const

operator-

C++
Vec4 operator-(const Vec4& other) const

operator*

C++
Vec4 operator*(float scalar) const

operator/

C++
Vec4 operator/(float scalar) const

operator+=

C++
Vec4& operator+=(const Vec4& other)

operator-=

C++
Vec4& operator-=(const Vec4& other)

operator*=

C++
Vec4& operator*=(float scalar)

xyz

C++
Vec3 xyz() const

Dot

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