MtVector4

Namespace: SharpPluginLoader.Core.MtTypes

public struct MtVector4

Inheritance ObjectValueTypeMtVector4

Fields

X

public float X;

Y

public float Y;

Z

public float Z;

W

public float W;

Properties

Length

public float Length { get; }

Property Value

Single

LengthSquared

public float LengthSquared { get; }

Property Value

Single

Normalized

public MtVector4 Normalized { get; }

Property Value

MtVector4

Constructors

MtVector4(Single, Single, Single, Single)

MtVector4(float x, float y, float z, float w)

Parameters

x Single

y Single

z Single

w Single

MtVector4(MtVector3, Single)

MtVector4(MtVector3 v3, float w)

Parameters

v3 MtVector3

w Single

Methods

Equals(Object)

bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

GetHashCode()

int GetHashCode()

Returns

Int32

SetLength(Single)

MtVector4 SetLength(float length)

Parameters

length Single

Returns

MtVector4

Limit(Single)

MtVector4 Limit(float limit)

Parameters

limit Single

Returns

MtVector4

Dot(MtVector4, MtVector4)

float Dot(MtVector4 a, MtVector4 b)

Parameters

a MtVector4

b MtVector4

Returns

Single

Lerp(MtVector4, MtVector4, Single)

MtVector4 Lerp(MtVector4 a, MtVector4 b, float t)

Parameters

a MtVector4

b MtVector4

t Single

Returns

MtVector4

ToVector3()

MtVector3 ToVector3()

Returns

MtVector3