Exemplo n.º 1
0
 /// <remarks>THIS IS NOT YET IMPLEMENTED!</remarks>
 /// <summary>
 /// Rotate a CubicHexCoord around this CubicHexCoord by the given rotation (constrained to
 /// exact 60 degree rotation steps) and return the CubicHexCoord that represents the
 /// rotated position in the grid.
 /// </summary>
 /// <param name="toRotate">The CubicHexCoord to be rotated around this CubicHexCoord.</param>
 /// <param name="rotation">The direction and magnitude of rotation to be applied (in exact
 /// 60 degree rotation steps.</param>
 /// <returns>A CubicHexCoord representing the position of the rotated hex on the grid.
 /// </returns>
 public CubicHexCoord RotateOtherAround(CubicHexCoord toRotate, RotationEnum rotation)
 {
     return(CubicHexCoord.Rotate(this, toRotate, rotation));
 }
Exemplo n.º 2
0
 /// <remarks>THIS IS NOT YET IMPLEMENTED!</remarks>
 /// <summary>
 /// Rotate this CubicHexCoord around the given center by the given rotation (constrained to
 /// exact 60 degree rotation steps) and return the CubicHexCoord that represents the
 /// rotated position in the grid.
 /// </summary>
 /// <param name="center">The CubicHexCoord to be rotated around this CubicHexCoord.</param>
 /// <param name="rotation">The direction and magnitude of rotation to be applied (in exact
 /// 60 degree rotation steps.</param>
 /// <returns>A CubicHexCoord representing the position of the rotated hex on the grid.
 /// </returns>
 public CubicHexCoord RotateAroundOther(CubicHexCoord center, RotationEnum rotation)
 {
     return(CubicHexCoord.Rotate(center, this, rotation));
 }