MtVector3

Namespace: SharpPluginLoader.Core.MtTypes

public struct MtVector3

Inheritance ObjectValueTypeMtVector3

Fields

X

public float X;

Y

public float Y;

Z

public float Z;

Properties

Zero

public static MtVector3 Zero { get; }

Property Value

MtVector3

One

public static MtVector3 One { get; }

Property Value

MtVector3

Forward

public static MtVector3 Forward { get; }

Property Value

MtVector3

Up

public static MtVector3 Up { get; }

Property Value

MtVector3

UnitX

public static MtVector3 UnitX { get; }

Property Value

MtVector3

UnitY

public static MtVector3 UnitY { get; }

Property Value

MtVector3

UnitZ

public static MtVector3 UnitZ { get; }

Property Value

MtVector3

Length

public float Length { get; }

Property Value

Single

LengthSquared

public float LengthSquared { get; }

Property Value

Single

Normalized

public MtVector3 Normalized { get; }

Property Value

MtVector3

Constructors

MtVector3(Single, Single, Single)

MtVector3(float x, float y, float z)

Parameters

x Single

y Single

z Single

Methods

Equals(Object)

bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

GetHashCode()

int GetHashCode()

Returns

Int32

SetLength(Single)

MtVector3 SetLength(float length)

Parameters

length Single

Returns

MtVector3

Limit(Single)

MtVector3 Limit(float limit)

Parameters

limit Single

Returns

MtVector3

Dot(MtVector3, MtVector3)

float Dot(MtVector3 a, MtVector3 b)

Parameters

a MtVector3

b MtVector3

Returns

Single

Cross(MtVector3, MtVector3)

MtVector3 Cross(MtVector3 a, MtVector3 b)

Parameters

a MtVector3

b MtVector3

Returns

MtVector3

Lerp(MtVector3, MtVector3, Single)

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

Parameters

a MtVector3

b MtVector3

t Single

Returns

MtVector3