Click or drag to resize

PolarRectMap Class

This map can be used with a horizontally wrapped RectGrid. For now, alignment does not work as with the other maps.
Inheritance Hierarchy
SystemObject
  Gamelogic.GridsAbstractMapRectPoint
    Gamelogic.GridsPolarRectMap

Namespace:  Gamelogic.Grids
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[VersionAttribute(1, 7, 0)]
[ExperimentalAttribute]
public class PolarRectMap : AbstractMap<RectPoint>, 
	IPolarMap<RectPoint>, IMap<RectPoint>, IGridToWorldMap<RectPoint>

The PolarRectMap type exposes the following members.

Constructors
  NameDescription
Public methodPolarRectMap
Top
Properties
Methods
  NameDescription
Public methodAnchorCellBottom (Inherited from AbstractMapTPoint.)
Public methodAnchorCellBottomCenter (Inherited from AbstractMapTPoint.)
Public methodAnchorCellBottomLeft (Inherited from AbstractMapTPoint.)
Public methodAnchorCellBottomRight (Inherited from AbstractMapTPoint.)
Public methodAnchorCellCenter (Inherited from AbstractMapTPoint.)
Public methodAnchorCellLeft (Inherited from AbstractMapTPoint.)
Public methodAnchorCellMiddle (Inherited from AbstractMapTPoint.)
Public methodAnchorCellMiddleCenter (Inherited from AbstractMapTPoint.)
Public methodAnchorCellMiddleLeft (Inherited from AbstractMapTPoint.)
Public methodAnchorCellMiddleRight (Inherited from AbstractMapTPoint.)
Public methodAnchorCellRight (Inherited from AbstractMapTPoint.)
Public methodAnchorCellTop (Inherited from AbstractMapTPoint.)
Public methodAnchorCellTopCenter (Inherited from AbstractMapTPoint.)
Public methodAnchorCellTopLeft (Inherited from AbstractMapTPoint.)
Public methodAnchorCellTopRight (Inherited from AbstractMapTPoint.)
Public methodAnimate
Animates a according to a fixed function. This is useful for animating grids when the animation does not depend on any input.
(Inherited from AbstractMapTPoint.)
Public methodCalcAnchorBottomLeft (Inherited from AbstractMapTPoint.)
Public methodCalcAnchorDimensions (Inherited from AbstractMapTPoint.)
Public methodCalcBottomLeft (Inherited from AbstractMapTPoint.)
Public methodCalcGridDimensions (Inherited from AbstractMapTPoint.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFlipXY (Inherited from AbstractMapTPoint.)
Public methodGetAnchorTranslation (Inherited from AbstractMapTPoint.)
Public methodGetCellDimensions (Inherited from AbstractMapTPoint.)
Public methodGetCellDimensions(TPoint)
Overrides this method to get custom Grid dimension calculations
(Inherited from AbstractMapTPoint.)
Public methodGetEndAngleZ
Public methodGetHashCode (Inherited from Object.)
Public methodGetInnerRadius
Public methodGetOuterRadius
Public methodGetStartAngleZ
Public methodGetType (Inherited from Object.)
Public methodGridToWorld (Overrides AbstractMapTPointGridToWorld(TPoint).)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRawWorldToGrid (Overrides AbstractMapTPointRawWorldToGrid(Vector2).)
Public methodReflectAboutX (Inherited from AbstractMapTPoint.)
Public methodReflectAboutY (Inherited from AbstractMapTPoint.)
Public methodRotate (Inherited from AbstractMapTPoint.)
Public methodRotate180 (Inherited from AbstractMapTPoint.)
Public methodRotate90 (Inherited from AbstractMapTPoint.)
Public methodRotateAround (Inherited from AbstractMapTPoint.)
Public methodScale(Single) (Inherited from AbstractMapTPoint.)
Public methodScale(Vector2) (Inherited from AbstractMapTPoint.)
Public methodScale(Single, Single) (Inherited from AbstractMapTPoint.)
Public methodSetGridPointTransforms (Inherited from AbstractMapTPoint.)
Public methodTo3DXY
Makes a map that maps to 3D, with the grid positioned in the XY plane, with the z-coordinate 0.
(Inherited from AbstractMapTPoint.)
Public methodTo3DXY(Single)
Makes a map that maps to 3D, with the grid positioned in the XY plane, with the given z-coordinate.
(Inherited from AbstractMapTPoint.)
Public methodTo3DXZ
Makes a map that maps to 3D, with the grid positioned in the XZ plane, with the z-coordinate 0.
(Inherited from AbstractMapTPoint.)
Public methodTo3DXZ(Single)
Makes a map that maps to 3D, with the grid positioned in the XZ plane, with the given z-coordinate.
(Inherited from AbstractMapTPoint.)
Public methodToString (Inherited from Object.)
Public methodTranslate(Vector2) (Inherited from AbstractMapTPoint.)
Public methodTranslate(Single, Single) (Inherited from AbstractMapTPoint.)
Public methodTranslateX (Inherited from AbstractMapTPoint.)
Public methodTranslateY (Inherited from AbstractMapTPoint.)
Public methodWithWindow (Inherited from AbstractMapTPoint.)
Top
Fields
Extension Methods
  NameDescription
Public Extension MethodThrowIfNull
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.)
Top
Examples
IGrid<RectPoint> grid;
IMap3D map;

private void BuildGrid()
{
    grid = RectGrid<TCell>.HorizontallyWrappedParallelogram(width, height);
    map = new PolarRectMap(Vector3.zero, 10, 110, newRectPoint(5, 10).To3DXY();

    foreach (var point in grid)
    {
        var cell = Instantiate(cellPrefab);
        cell.transform.localPosition = map[
    }
}

public void Click(Vector3 worldPoint)
{
    var gridPoint = map[worldPoint]

    if (grid.Contains(gridPoint))
    {
        ClickCell(grid[gridPoint]);
    }
}
See Also