struct
ArcVec2
- Module
- Arc
- Header
#include "Arc/Core/ArcMath.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
float | X | Default 0.0f. |
float | Y | Default 0.0f. |
static const ArcVec2 | Zero | |
static const ArcVec2 | One |
Constructors
| Signature | Name | Description |
|---|---|---|
ArcVec2() = default | ArcVec2 | |
constexpr ArcVec2(float x, float y) : X(x), Y(y) | ArcVec2 | |
constexpr explicit ArcVec2(float scalar) : X(scalar), Y(scalar) | ArcVec2 |
Public functions
| Returns | Name | Description |
|---|---|---|
ArcVec2 | operator+ | |
ArcVec2 | operator- | |
ArcVec2 | operator* | |
ArcVec2 | operator/ | |
ArcVec2 | operator* | |
ArcVec2& | operator+= | |
ArcVec2& | operator-= | |
ArcVec2& | operator*= | |
bool | operator== | |
bool | operator!= | |
float | Length | |
float | LengthSquared | |
ArcVec2 | Normalized | |
float | Dot | |
float | Cross | |
ArcVec2 | Lerp | |
ArcVec2 | Min | |
ArcVec2 | Max |
Function details
ArcVec2
C++
ArcVec2() = defaultArcVec2
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) constoperator-
C++
ArcVec2 operator-(const ArcVec2& other) constoperator*
C++
ArcVec2 operator*(float scalar) constoperator/
C++
ArcVec2 operator/(float scalar) constoperator*
C++
ArcVec2 operator*(const ArcVec2& other) constoperator+=
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) constoperator!=
C++
bool operator!=(const ArcVec2& other) constLength
C++
float Length() constLengthSquared
C++
float LengthSquared() constNormalized
C++
ArcVec2 Normalized() constDot
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