Vector4

More information can be found in the Unity API Reference and maybe in the Unity Manual.

Constructors

Constructor

Description

Vector4()

Vector4(x, y)

Vector4(x, y, z)

Vector4(x, y, z, w)

Members

Member

Description

magnitude

normalized

sqrMagnitude

w

x

y

z

Static members

Member

Description

kEpsilon

negativeInfinity

one

positiveInfinity

zero

Details

class Vector4
Vector4 Vector4(float x, float y, float z, float w)
Vector4 Vector4(float x, float y, float z)
Vector4 Vector4(float x, float y)
Vector4 Vector4()
const float magnitude
const Vector4 normalized
const float sqrMagnitude
float w
float x
float y
float z
int GetHashCode()
void Normalize()
void Scale(Vector4 scale)
void Set(float newX, float newY, float newZ, float newW)
float SqrMagnitude()
string ToString()
string ToString(string format)
static const float kEpsilon
static const Vector4 negativeInfinity
static const Vector4 one
static const Vector4 positiveInfinity
static const Vector4 zero
static float Distance(Vector4 a, Vector4 b)
static float Dot(Vector4 a, Vector4 b)
static Vector4 Lerp(Vector4 a, Vector4 b, float t)
static Vector4 LerpUnclamped(Vector4 a, Vector4 b, float t)
static float Magnitude(Vector4 a)
static Vector4 Max(Vector4 lhs, Vector4 rhs)
static Vector4 Min(Vector4 lhs, Vector4 rhs)
static Vector4 MoveTowards(Vector4 current, Vector4 target, float maxDistanceDelta)
static Vector4 Normalize(Vector4 a)
static Vector4 Project(Vector4 a, Vector4 b)
static Vector4 Scale(Vector4 a, Vector4 b)
static float SqrMagnitude(Vector4 a)
static Vector4 operator-(Vector4 a)
static Vector4 operator-(Vector4 a, Vector4 b)
static bool operator!=(Vector4 lhs, Vector4 rhs)
static Vector4 operator*(Vector4 a, float d)
static Vector4 operator*(float d, Vector4 a)
static Vector4 operator/(Vector4 a, float d)
static Vector4 operator+(Vector4 a, Vector4 b)
static bool operator==(Vector4 lhs, Vector4 rhs)