MtVector2
Namespace: SharpPluginLoader.Core.MtTypes
public struct MtVector2
Inheritance Object → ValueType → MtVector2
Fields
X
public float X;
Y
public float Y;
Properties
Length
public float Length { get; }
Property Value
LengthSquared
public float LengthSquared { get; }
Property Value
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
GetHashCode()
int GetHashCode()
Returns
Normalize()
MtVector2 Normalize()
Returns
SetLength(Single)
MtVector2 SetLength(float length)
Parameters
length
Single
Returns
Limit(Single)
MtVector2 Limit(float limit)
Parameters
limit
Single
Returns
Dot(MtVector2, MtVector2)
float Dot(MtVector2 a, MtVector2 b)
Parameters
Returns
Lerp(MtVector2, MtVector2, Single)
MtVector2 Lerp(MtVector2 a, MtVector2 b, float t)
Parameters
t
Single