Table of Contents

Class Vector2Extensions

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

Extension methods for Vector2.

[Version(1, 2, 0)]
public static class Vector2Extensions
Inheritance
Vector2Extensions
Inherited Members

Methods

FloorToVectorPoint(Vector2)

Floors each component and returns the corresponding VectorPoint.

[Version(1, 7, 0)]
public static VectorPoint FloorToVectorPoint(this Vector2 vec)

Parameters

vec Vector2

Returns

VectorPoint

HadamardDiv(Vector2, VectorPoint)

public static Vector2 HadamardDiv(this Vector2 thisVector, VectorPoint otherVector)

Parameters

thisVector Vector2
otherVector VectorPoint

Returns

Vector2

HadamardMul(Vector2, VectorPoint)

public static Vector2 HadamardMul(this Vector2 thisVector, VectorPoint otherVector)

Parameters

thisVector Vector2
otherVector VectorPoint

Returns

Vector2

PerpDot(Vector2, Vector2)

public static float PerpDot(this Vector2 thisVector, Vector2 otherVector)

Parameters

thisVector Vector2
otherVector Vector2

Returns

float