MtVector2

Namespace: SharpPluginLoader.Core.MtTypes

public struct MtVector2

Inheritance ObjectValueTypeMtVector2

Fields

X

public float X;

Y

public float Y;

Properties

Length

public float Length { get; }

Property Value

Single

LengthSquared

public float LengthSquared { get; }

Property Value

Single

Constructors

MtVector2(Single, Single)

MtVector2(float x, float y)

Parameters

x Single

y Single

Methods

Equals(Object)

bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

GetHashCode()

int GetHashCode()

Returns

Int32

Normalize()

MtVector2 Normalize()

Returns

MtVector2

SetLength(Single)

MtVector2 SetLength(float length)

Parameters

length Single

Returns

MtVector2

Limit(Single)

MtVector2 Limit(float limit)

Parameters

limit Single

Returns

MtVector2

Dot(MtVector2, MtVector2)

float Dot(MtVector2 a, MtVector2 b)

Parameters

a MtVector2

b MtVector2

Returns

Single

Lerp(MtVector2, MtVector2, Single)

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

Parameters

a MtVector2

b MtVector2

t Single

Returns

MtVector2