Class HexRotation
Represents rotations / reflections of a hex
Inheritance
System.Object
HexRotation
Assembly: Sylves.dll
Syntax
public sealed class HexRotation : ValueType
Properties
All
Declaration
public static HexRotation[] All { get; }
Property Value
FTReflectX
Declaration
public static HexRotation FTReflectX { get; }
Property Value
FTReflectY
Declaration
public static HexRotation FTReflectY { get; }
Property Value
Identity
Declaration
public static HexRotation Identity { get; }
Property Value
IsReflection
Declaration
public bool IsReflection { get; }
Property Value
Type |
Description |
System.Boolean |
|
PTReflectX
Declaration
public static HexRotation PTReflectX { get; }
Property Value
PTReflectY
Declaration
public static HexRotation PTReflectY { get; }
Property Value
RotateCCW
Declaration
public static HexRotation RotateCCW { get; }
Property Value
RotateCW
Declaration
public static HexRotation RotateCW { get; }
Property Value
Rotation
Declaration
public int Rotation { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
FromMatrix(Matrix4x4, HexOrientation)
Declaration
public static Nullable<HexRotation> FromMatrix(Matrix4x4 m, HexOrientation orientation)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Invert()
Declaration
public HexRotation Invert()
Returns
Multiply(Vector3Int)
Declaration
public Vector3Int Multiply(Vector3Int v)
Parameters
Returns
Rotate60(Int32)
Declaration
public static HexRotation Rotate60(int i)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
ToMatrix(HexOrientation)
Declaration
public Matrix4x4 ToMatrix(HexOrientation orientation)
Parameters
Returns
Operators
Equality(HexRotation, HexRotation)
Declaration
public static bool operator ==(HexRotation a, HexRotation b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implicit(CellRotation to HexRotation)
Declaration
public static implicit operator HexRotation(CellRotation r)
Parameters
Returns
Implicit(HexRotation to CellRotation)
Declaration
public static implicit operator CellRotation(HexRotation r)
Parameters
Returns
Inequality(HexRotation, HexRotation)
Declaration
public static bool operator !=(HexRotation a, HexRotation b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Multiply(HexRotation, FSTriangleCorner)
Declaration
public static FSTriangleCorner operator *(HexRotation rotation, FSTriangleCorner dir)
Parameters
Returns
Multiply(HexRotation, FSTriangleDir)
Declaration
public static FSTriangleDir operator *(HexRotation rotation, FSTriangleDir dir)
Parameters
Returns
Multiply(HexRotation, FTHexCorner)
Declaration
public static FTHexCorner operator *(HexRotation rotation, FTHexCorner dir)
Parameters
Returns
Multiply(HexRotation, FTHexDir)
Declaration
public static FTHexDir operator *(HexRotation rotation, FTHexDir dir)
Parameters
Returns
Multiply(HexRotation, FTTriangleCorner)
Declaration
public static FTTriangleCorner operator *(HexRotation rotation, FTTriangleCorner dir)
Parameters
Returns
Multiply(HexRotation, FTTriangleDir)
Declaration
public static FTTriangleDir operator *(HexRotation rotation, FTTriangleDir dir)
Parameters
Returns
Multiply(HexRotation, HexBound)
Declaration
public static HexBound operator *(HexRotation rotation, HexBound bound)
Parameters
Returns
Multiply(HexRotation, HexRotation)
Declaration
public static HexRotation operator *(HexRotation a, HexRotation b)
Parameters
Returns
Multiply(HexRotation, PTHexCorner)
Declaration
public static PTHexCorner operator *(HexRotation rotation, PTHexCorner dir)
Parameters
Returns
Multiply(HexRotation, PTHexDir)
Declaration
public static PTHexDir operator *(HexRotation rotation, PTHexDir dir)
Parameters
Returns