Class ArithmeticTest
public class ArithmeticTest : GridBehaviour<PointyHexPoint>
- Inheritance
-
ArithmeticTest
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.runInEditModeComponent.GetComponent<T>()Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentsInParent<T>()Component.transformComponent.gameObjectComponent.tagObject.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.nameObject.hideFlags
- Extension Methods
Fields
PointyHexRemainders
public static readonly List<PointyHexPoint> PointyHexRemainders
Field Value
accuracy
public int accuracy
Field Value
divisor
public int divisor
Field Value
gradient
public Gradient gradient
Field Value
Methods
Div2(PointyHexPoint)
public static PointyHexPoint Div2(PointyHexPoint point)
Parameters
pointPointyHexPoint
Returns
Div2N(PointyHexPoint, int)
public PointyHexPoint Div2N(PointyHexPoint p, int n)
Parameters
pPointyHexPointnint
Returns
DivN(PointyHexPoint, int)
public PointyHexPoint DivN(PointyHexPoint p, int d)
Parameters
pPointyHexPointdint
Returns
InitGrid()
When this behaviour is attached to a grid builder, this method is called once the grid is created, and all cells(tiles) have been instantiated.
Override this to implement custom initialisation code. (You can access the grid through the Grid property).
public override void InitGrid()
Mod2N(PointyHexPoint, int)
public PointyHexPoint Mod2N(PointyHexPoint p, int n)
Parameters
pPointyHexPointnint
Returns
Mul2(PointyHexPoint)
public PointyHexPoint Mul2(PointyHexPoint p)
Parameters
Returns
Mul2N(PointyHexPoint, int)
public PointyHexPoint Mul2N(PointyHexPoint p, int n)
Parameters
pPointyHexPointnint
Returns
MulN(PointyHexPoint, int)
public PointyHexPoint MulN(PointyHexPoint p, int n)
Parameters
pPointyHexPointnint
Returns
Rebase(PointyHexPoint)
public List<PointyHexPoint> Rebase(PointyHexPoint p)