HexMapLibrary
Public Member Functions | Properties | List of all members
Wunderwunsch.HexMapLibrary.Corner Class Reference

non-generic base class for a tile containing positional data, either use generic version or extend from this class for your own implementation More...

Inheritance diagram for Wunderwunsch.HexMapLibrary.Corner:
Wunderwunsch.HexMapLibrary.MapElement Wunderwunsch.HexMapLibrary.Generic.Corner< C >

Public Member Functions

 Corner (Vector3Int position, int index, Vector2 normalizedPosition)
 Initializes a new corner instance More...
 
- Public Member Functions inherited from Wunderwunsch.HexMapLibrary.MapElement
override string ToString ()
 returns a string with 3 Lines, one each for Index, Position and NormalizedPosition More...
 

Properties

override Vector3 CartesianPosition [get]
 returns the cartesian coordinate of the tile center More...
 
- Properties inherited from Wunderwunsch.HexMapLibrary.MapElement
int Index [get, private set]
 index of the MapElement, HexMap.Tiles , HexMap.Edges and HexMap.Corners arrays are mapped based on this. Can be arbitrarily chosen as long as it starts with 0 and has no gaps. More...
 
Vector3Int Position [get, private set]
 coordinate of the MapElement More...
 
abstract Vector3 CartesianPosition [get]
 returns the cartesian coordinate of the MapElement More...
 
Vector2 NormalizedPosition [get, private set]
 position normalised to a range of [0...1] based on the boundingbox of the map tiles,edges or corners More...
 

Additional Inherited Members

- Protected Member Functions inherited from Wunderwunsch.HexMapLibrary.MapElement
 MapElement (Vector3Int position, int index, Vector2 normalizedPosition)
 base constructor called by derived classes of MapElement More...
 

Detailed Description

non-generic base class for a tile containing positional data, either use generic version or extend from this class for your own implementation

Constructor & Destructor Documentation

◆ Corner()

Wunderwunsch.HexMapLibrary.Corner.Corner ( Vector3Int  position,
int  index,
Vector2  normalizedPosition 
)

Initializes a new corner instance

>

Property Documentation

◆ CartesianPosition

override Vector3 Wunderwunsch.HexMapLibrary.Corner.CartesianPosition
get

returns the cartesian coordinate of the tile center