Struct GridCell
Represents a cell in the navigation grid.
Inherited Members
Namespace: Genesis.Core.GameElements
Assembly: Genesis.dll
Syntax
public struct GridCell
Fields
height
The height of the cell.
Declaration
public float height
Field Value
Type | Description |
---|---|
float |
width
The width of the cell.
Declaration
public float width
Field Value
Type | Description |
---|---|
float |
x
The x-coordinate of the cell.
Declaration
public float x
Field Value
Type | Description |
---|---|
float |
y
The y-coordinate of the cell.
Declaration
public float y
Field Value
Type | Description |
---|---|
float |
Methods
Equal(GridCell)
Checks if the given grid cell is equal to the current
Declaration
public bool Equal(GridCell other)
Parameters
Type | Name | Description |
---|---|---|
GridCell | other |
Returns
Type | Description |
---|---|
bool |
ToRect()
Converts the grid cell to a rectangle.
Declaration
public Rect ToRect()
Returns
Type | Description |
---|---|
Rect | A rectangle representing the grid cell. |
ToVec3()
Converts the grid cell coordinates to an Vec3
Declaration
public Vec3 ToVec3()
Returns
Type | Description |
---|---|
Vec3 |