Table of Contents

Struct Vector4

Namespace
Lime
Assembly
Lime.dll
public struct Vector4 : IEquatable<Vector4>
Implements
Inherited Members

Constructors

Vector4(Vector3, float)

public Vector4(Vector3 xyz, float w)

Parameters

xyz Vector3
w float

Vector4(float, float, float, float)

public Vector4(float x, float y, float z, float w)

Parameters

x float
y float
z float
w float

Fields

One

Returns a vector with components 1, 1, 1, 1.

public static readonly Vector4 One

Field Value

Vector4

W

[YuzuMember("3")]
public float W

Field Value

float

X

[YuzuMember("0")]
public float X

Field Value

float

Y

[YuzuMember("1")]
public float Y

Field Value

float

Z

[YuzuMember("2")]
public float Z

Field Value

float

Zero

Returns a vector with components 0, 0, 0, 0.

public static readonly Vector4 Zero

Field Value

Vector4

Properties

this[int]

Gets or sets the vector component by its index.

public float this[int component] { get; set; }

Parameters

component int

Property Value

float

Length

public float Length { get; }

Property Value

float

Normalized

public Vector4 Normalized { get; }

Property Value

Vector4

SqrLength

public float SqrLength { get; }

Property Value

float

Methods

DotProduct(Vector4, Vector4)

public static float DotProduct(Vector4 value1, Vector4 value2)

Parameters

value1 Vector4
value2 Vector4

Returns

float

Equals(Vector4)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Vector4 rhs)

Parameters

rhs Vector4

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Operators

operator +(Vector4, Vector4)

public static Vector4 operator +(Vector4 value1, Vector4 value2)

Parameters

value1 Vector4
value2 Vector4

Returns

Vector4

operator /(Vector4, Vector4)

public static Vector4 operator /(Vector4 value1, Vector4 value2)

Parameters

value1 Vector4
value2 Vector4

Returns

Vector4

operator /(Vector4, float)

public static Vector4 operator /(Vector4 value1, float divider)

Parameters

value1 Vector4
divider float

Returns

Vector4

operator ==(Vector4, Vector4)

public static bool operator ==(Vector4 value1, Vector4 value2)

Parameters

value1 Vector4
value2 Vector4

Returns

bool

explicit operator Vector2(Vector4)

public static explicit operator Vector2(Vector4 value)

Parameters

value Vector4

Returns

Vector2

explicit operator Vector3(Vector4)

public static explicit operator Vector3(Vector4 value)

Parameters

value Vector4

Returns

Vector3

operator !=(Vector4, Vector4)

public static bool operator !=(Vector4 value1, Vector4 value2)

Parameters

value1 Vector4
value2 Vector4

Returns

bool

operator *(Vector4, Vector4)

public static Vector4 operator *(Vector4 value1, Vector4 value2)

Parameters

value1 Vector4
value2 Vector4

Returns

Vector4

operator *(Vector4, float)

public static Vector4 operator *(Vector4 value, float scaleFactor)

Parameters

value Vector4
scaleFactor float

Returns

Vector4

operator *(float, Vector4)

public static Vector4 operator *(float scaleFactor, Vector4 value)

Parameters

scaleFactor float
value Vector4

Returns

Vector4

operator -(Vector4, Vector4)

public static Vector4 operator -(Vector4 value1, Vector4 value2)

Parameters

value1 Vector4
value2 Vector4

Returns

Vector4

operator -(Vector4)

public static Vector4 operator -(Vector4 value)

Parameters

value Vector4

Returns

Vector4