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
Fields
ALL
public static readonly Cardinal[] ALL
Field Value
- Cardinal[]
East
Positive X
public static readonly Cardinal East
Field Value
North
Negative Z
public static readonly Cardinal North
Field Value
NorthEast
Positive X, negative Z
public static readonly Cardinal NorthEast
Field Value
NorthWest
Negative X, negative Z
public static readonly Cardinal NorthWest
Field Value
South
Positive Z
public static readonly Cardinal South
Field Value
SouthEast
Positive X, positive Z
public static readonly Cardinal SouthEast
Field Value
SouthWest
Negative X, positive Z
public static readonly Cardinal SouthWest
Field Value
West
Negative X
public static readonly Cardinal West
Field Value
Properties
Code
public string Code { get; }
Property Value
Index
public int Index { get; }
Property Value
Initial
public string Initial { get; }
Property Value
IsDiagnoal
public bool IsDiagnoal { get; }
Property Value
Normalf
public Vec3f Normalf { get; }
Property Value
Normali
public Vec3i Normali { get; }
Property Value
Opposite
public Cardinal Opposite { get; }
Property Value
OppositeIndex
public int OppositeIndex { get; }
Property Value
Methods
FromInitial(string)
public static Cardinal FromInitial(string initials)
Parameters
initials
string
Returns
FromNormali(Vec3i)
public static Cardinal FromNormali(Vec3i normali)
Parameters
normali
Vec3i
Returns
FromVector(double, double, double)
public static Cardinal FromVector(double x, double y, double z)