struct

ArcVec2

Module
Arc
Header
#include "Arc/Core/ArcMath.h"
Namespace
Arcf

Properties

TypeNameDescription
floatXDefault 0.0f.
floatYDefault 0.0f.
static const ArcVec2Zero
static const ArcVec2One

Constructors

SignatureNameDescription
ArcVec2() = defaultArcVec2
constexpr ArcVec2(float x, float y) : X(x), Y(y)ArcVec2
constexpr explicit ArcVec2(float scalar) : X(scalar), Y(scalar)ArcVec2

Public functions

ReturnsNameDescription
ArcVec2operator+
ArcVec2operator-
ArcVec2operator*
ArcVec2operator/
ArcVec2operator*
ArcVec2&operator+=
ArcVec2&operator-=
ArcVec2&operator*=
booloperator==
booloperator!=
floatLength
floatLengthSquared
ArcVec2Normalized
floatDot
floatCross
ArcVec2Lerp
ArcVec2Min
ArcVec2Max

Function details

ArcVec2

C++
ArcVec2() = default

ArcVec2

C++
constexpr ArcVec2(float x, float y) : X(x), Y(y)

ArcVec2

C++
constexpr explicit ArcVec2(float scalar) : X(scalar), Y(scalar)

operator+

C++
ArcVec2 operator+(const ArcVec2& other) const

operator-

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

operator*

C++
ArcVec2 operator*(float scalar) const

operator/

C++
ArcVec2 operator/(float scalar) const

operator*

C++
ArcVec2 operator*(const ArcVec2& other) const

operator+=

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

operator-=

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

operator*=

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

operator==

C++
bool operator==(const ArcVec2& other) const

operator!=

C++
bool operator!=(const ArcVec2& other) const

Length

C++
float Length() const

LengthSquared

C++
float LengthSquared() const

Normalized

C++
ArcVec2 Normalized() const

Dot

C++
static float Dot(const ArcVec2& a, const ArcVec2& b)

Cross

C++
static float Cross(const ArcVec2& a, const ArcVec2& b)

Lerp

C++
static ArcVec2 Lerp(const ArcVec2& a, const ArcVec2& b, float t)

Min

C++
static ArcVec2 Min(const ArcVec2& a, const ArcVec2& b)

Max

C++
static ArcVec2 Max(const ArcVec2& a, const ArcVec2& b)
Generated from Arc/Core/ArcMath.h via arc.json · Nov 5, 2026Version 1.0.0