Table of Contents

Class BlockPoint

Namespace
Gamelogic.Grids2
Assembly
Assembly-CSharp.dll

Provides constants and methods for working with points in block grids.

public static class BlockPoint
Inheritance
BlockPoint
Inherited Members

Fields

Down

The point one unit down from the origin.

East

The point one unit to the east of the origin.

North

The point one unit to the north of the origin.

OrthogonalDirections

The orthogonal directions in 3D.

South

The point one unit to the south of the origin.

Up

The point one unit up from the origin.

West

The point one unit to the west of the origin.

Methods

ChebychevNorm(GridPoint3)

Returns the Euclidean norm of a point, defined as the maximum of the absolute values of the coordinates.

EuclideanNorm(GridPoint3)

Returns the Euclidean norm of a bock point, defined as the square root of the sum of the squares of the coordinates.

ManhattanNorm(GridPoint3)

Returns the Manhattan norm of a point, defined as the sum of the absolute values of the coordinates.

RoundToGridPoint(Vector3)

Rounds a Vector3 to a grid point by rounding each coordinate.