Represents the distances from the gameboard tracking origin to the borders of the gameboard's viewable area.
More...
|
Length | ViewableSpanX [get] |
| The distance in meters representing the side-to-side width of the viewable area of the gameboard;.
|
Length | ViewableSpanY [get] |
| The distance in meters representing the front-to-back length of the viewable area of the gameboard;.
|
Length | ViewableSpanZ [get] |
| The distance in meters representing the height of the viewable area of the gameboard;.
|
Length | OriginOffsetZ [get] |
| The distance from the tracking origin to the geometric center of the gameboard.
|
Represents the distances from the gameboard tracking origin to the borders of the gameboard's viewable area.
◆ GameboardExtents() [1/2]
TiltFive.GameBoard.GameboardExtents.GameboardExtents |
( |
| ) |
|
|
inlinestatic |
◆ GameboardExtents() [2/2]
TiltFive.GameBoard.GameboardExtents.GameboardExtents |
( |
T5_GameboardSize | gameboardSize | ) |
|
|
inline |
◆ GetCornerPositionInGameboardSpace()
Vector3 TiltFive.GameBoard.GameboardExtents.GetCornerPositionInGameboardSpace |
( |
Corner | corner | ) |
|
|
inline |
Gets the coordinates of the specified corner in gameboard space.
- Parameters
-
- Returns
- The coordinates of the specified corner in gameboard space.
- Exceptions
-
ArgumentException | Thrown when an invalid value for corner is provided. |
◆ GetEdgeCenterPositionInGameboardSpace()
Vector3 TiltFive.GameBoard.GameboardExtents.GetEdgeCenterPositionInGameboardSpace |
( |
Edge | edge | ) |
|
|
inline |
Gets the coordinates of the center of the specified edge in gameboard space.
- Parameters
-
- Returns
- The coordinates of the center of the specified edge in gameboard space.
- Exceptions
-
ArgumentException | Thrown when an invalid value for edge is provided. |
◆ GetGeometricCenterPositionInGameboardSpace()
Vector3 TiltFive.GameBoard.GameboardExtents.GetGeometricCenterPositionInGameboardSpace |
( |
| ) |
|
|
inline |
Gets the coordinates of the geometric center (or centroid) of the gameboard in gameboard space.
- Returns
For the LE gameboard, the tracking origin and the geometric center of the gameboard overlap, so this will return a vector of [0, 0, 0], but for the XE gameboard variants, the tracking origin is offset from the gameboard's geometric center, making this function useful for accounting for this offset.
◆ GetPhysicalCenterPositionInGameboardSpace()
Vector3 TiltFive.GameBoard.GameboardExtents.GetPhysicalCenterPositionInGameboardSpace |
( |
| ) |
|
|
inline |
Gets the coordinates of the geometric center (or centroid) of the gameboard in gameboard space.
- Returns
For the LE gameboard, the tracking origin and the geometric center of the gameboard overlap, so this will return a vector of [0, 0, 0], but for the XE gameboard variants, the tracking origin is offset from the gameboard's geometric center, making this function useful for accounting for this offset.
◆ ViewableExtentNegativeX
Length TiltFive.GameBoard.GameboardExtents.ViewableExtentNegativeX |
The distance in meters from the gameboard origin to the edge of the viewable area in the negative X direction.
◆ ViewableExtentNegativeZ
Length TiltFive.GameBoard.GameboardExtents.ViewableExtentNegativeZ |
The distance in meters from the gameboard origin to the edge of the viewable area in the negative Z direction.
◆ ViewableExtentPositiveX
Length TiltFive.GameBoard.GameboardExtents.ViewableExtentPositiveX |
The distance in meters from the gameboard origin to the edge of the viewable area in the positive X direction.
◆ ViewableExtentPositiveY
Length TiltFive.GameBoard.GameboardExtents.ViewableExtentPositiveY |
The distance in meters above the gameboard origin that the viewable area extends in the positive Y direction.
◆ ViewableExtentPositiveZ
Length TiltFive.GameBoard.GameboardExtents.ViewableExtentPositiveZ |
The distance in meters from the gameboard origin to the edge of the viewable area in the positive Z direction.
◆ OriginOffsetZ
Length TiltFive.GameBoard.GameboardExtents.OriginOffsetZ |
|
get |
The distance from the tracking origin to the geometric center of the gameboard.
For square configurations like the LE gameboard, this value will be zero, but this can be helpful for spatial logic relating to the XE or XE Raised gameboards.
◆ ViewableSpanX
Length TiltFive.GameBoard.GameboardExtents.ViewableSpanX |
|
get |
The distance in meters representing the side-to-side width of the viewable area of the gameboard;.
◆ ViewableSpanY
Length TiltFive.GameBoard.GameboardExtents.ViewableSpanY |
|
get |
The distance in meters representing the front-to-back length of the viewable area of the gameboard;.
◆ ViewableSpanZ
Length TiltFive.GameBoard.GameboardExtents.ViewableSpanZ |
|
get |
The distance in meters representing the height of the viewable area of the gameboard;.
The documentation for this struct was generated from the following file: