private OrientationInnerData(string name, int indexClockwise, MyHexPosition neighboutOffset, float rotationInDegrees) { _name = name; _indexClockwise = indexClockwise; _neighboutOffset = neighboutOffset; _rotationInDegrees = rotationInDegrees; }
private void Test(MyHexPosition position, Orientation orientation, MyHexPosition testPoint) { testPoint = testPoint - position; position = new MyHexPosition(0, 0); var transformator = new BattlefieldPointOfViewTransformator(position, orientation); var local = transformator.ToLocalPosition(testPoint); var global = transformator.ToGlobalPosition(local); Debug.Log($"Center {position} orientation {orientation} target {testPoint} || local {local} || global {global}"); }
protected bool Equals(MyHexPosition other) { return(U == other.U && V == other.V); }