Table of Contents

Class Cardinal

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll
public class Cardinal
Inheritance
Cardinal
Inherited Members
Extension Methods

Constructors

Cardinal(string, string, Vec3i, int, int, bool)

public Cardinal(string code, string initial, Vec3i normali, int index, int oppositeIndex, bool isDiagonal)

Parameters

code string
initial string
normali Vec3i
index int
oppositeIndex int
isDiagonal bool

Fields

ALL

public static readonly Cardinal[] ALL

Field Value

Cardinal[]

East

Positive X

public static readonly Cardinal East

Field Value

Cardinal

North

Negative Z

public static readonly Cardinal North

Field Value

Cardinal

NorthEast

Positive X, negative Z

public static readonly Cardinal NorthEast

Field Value

Cardinal

NorthWest

Negative X, negative Z

public static readonly Cardinal NorthWest

Field Value

Cardinal

South

Positive Z

public static readonly Cardinal South

Field Value

Cardinal

SouthEast

Positive X, positive Z

public static readonly Cardinal SouthEast

Field Value

Cardinal

SouthWest

Negative X, positive Z

public static readonly Cardinal SouthWest

Field Value

Cardinal

West

Negative X

public static readonly Cardinal West

Field Value

Cardinal

Properties

Code

public string Code { get; }

Property Value

string

Index

public int Index { get; }

Property Value

int

Initial

public string Initial { get; }

Property Value

string

IsDiagnoal

public bool IsDiagnoal { get; }

Property Value

bool

Normalf

public Vec3f Normalf { get; }

Property Value

Vec3f

Normali

public Vec3i Normali { get; }

Property Value

Vec3i

Opposite

public Cardinal Opposite { get; }

Property Value

Cardinal

OppositeIndex

public int OppositeIndex { get; }

Property Value

int

Methods

FromInitial(string)

public static Cardinal FromInitial(string initials)

Parameters

initials string

Returns

Cardinal

FromNormali(Vec3i)

public static Cardinal FromNormali(Vec3i normali)

Parameters

normali Vec3i

Returns

Cardinal

FromVector(double, double, double)

public static Cardinal FromVector(double x, double y, double z)

Parameters

x double
y double
z double

Returns

Cardinal