Click or drag to resize

PolygonGridMapTPoint, TBasePoint Class

A map that can be used for general spliced grids made from polygons. To use this map: - Find a rectangular tessellation for your grid. - This rectangle will consist out of several polygons, each which represents a (partial) cell of your grid. - One of these polygons should correspond to the splice point (0, 0, 0). - Find the center of this polygon relative to the rectangle in normalized coordinates, that is, so that the entire rectangle corresponds to (0, 0) -> (1, 1). - Label the polygons 0, 1, 2, ... etc. - Find the vertices of each polygon in normalized coordinates. - Now calculate the spliced vector point offsets for each polygon, relative to the (0, 0, 0) polygon, in normalized coordinates.
Inheritance Hierarchy
SystemObject
  Gamelogic.GridsAbstractMapTPoint
    Gamelogic.GridsPolygonGridMapTPoint, TBasePoint
      Gamelogic.GridsCairoMap

Namespace:  Gamelogic.Grids
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[VersionAttribute(1, 2, 0)]
[ExperimentalAttribute]
public abstract class PolygonGridMap<TPoint, TBasePoint> : AbstractMap<TPoint>
where TPoint : Object, ISplicedPoint<TPoint, TBasePoint>
where TBasePoint : Object, IGridPoint<TBasePoint>, IVectorPoint<TBasePoint>

Type Parameters

TPoint
TBasePoint

The PolygonGridMapTPoint, TBasePoint type exposes the following members.

Constructors
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)
Returns the cell dimensions for this cell. Generally, for spliced points, these are the same for cells(points) with the same splice index.
(Overrides AbstractMapTPointGetCellDimensions(TPoint).)
Public methodGetHashCode (Inherited from Object.)
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 methodStatic memberScale(IEnumerableIEnumerableVector2, Single)
Scales the vertices of a list of polygons (each represented as a list of vertices) with the factor.
Public methodStatic memberScale(IEnumerableIEnumerableVector2, Vector2)
Scales the vertices of a list of polygons (each represented as a list of vertices) compontwise with the factor.
Public methodStatic memberScale(IEnumerableVector2, Single)
Scales a list of points componntwise the factor.
Public methodStatic memberScale(IEnumerableVector2, Vector2)
Scales a list of points componntwise with the factor.
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
See Also