Represents the distances from the gameboard tracking origin to the borders of the gameboard's viewable area. More...
Public Member Functions | |
GameboardExtents (T5_GameboardSize gameboardSize) | |
Vector3 | GetCornerPositionInGameboardSpace (Corner corner) |
Gets the coordinates of the specified corner in gameboard space. More... | |
Vector3 | GetEdgeCenterPositionInGameboardSpace (Edge edge) |
Gets the coordinates of the center of the specified edge in gameboard space. More... | |
Vector3 | GetPhysicalCenterPositionInGameboardSpace () |
Gets the coordinates of the center of the gameboard in gameboard space. More... | |
Static Public Member Functions | |
static | GameboardExtents () |
Public Attributes | |
Length | ViewableExtentPositiveX |
The distance in meters from the gameboard origin to the edge of the viewable area in the positive X direction. More... | |
Length | ViewableExtentNegativeX |
The distance in meters from the gameboard origin to the edge of the viewable area in the negative X direction. More... | |
Length | ViewableExtentPositiveZ |
The distance in meters from the gameboard origin to the edge of the viewable area in the positive Z direction. More... | |
Length | ViewableExtentNegativeZ |
The distance in meters from the gameboard origin to the edge of the viewable area in the negative Z direction. More... | |
Length | ViewableExtentPositiveY |
The distance in meters above the gameboard origin that the viewable area extends in the positive Y direction. More... | |
Properties | |
Length | ViewableSpanX [get] |
The distance in meters representing the side-to-side width of the viewable area of the gameboard; More... | |
Length | ViewableSpanY [get] |
The distance in meters representing the front-to-back length of the viewable area of the gameboard; More... | |
Length | ViewableSpanZ [get] |
The distance in meters representing the height of the viewable area of the gameboard; More... | |
Length | OriginOffsetZ [get] |
The distance from the tracking origin to the physical center of the gameboard. More... | |
Represents the distances from the gameboard tracking origin to the borders of the gameboard's viewable area.
Definition at line 169 of file GameBoard.cs.
|
static |
Definition at line 223 of file GameBoard.cs.
TiltFive.GameBoard.GameboardExtents.GameboardExtents | ( | T5_GameboardSize | gameboardSize | ) |
Definition at line 230 of file GameBoard.cs.
References TiltFive.T5_GameboardSize.ViewableExtentNegativeX, TiltFive.GameBoard.GameboardExtents.ViewableExtentNegativeX, TiltFive.T5_GameboardSize.ViewableExtentNegativeZ, TiltFive.GameBoard.GameboardExtents.ViewableExtentNegativeZ, TiltFive.T5_GameboardSize.ViewableExtentPositiveX, TiltFive.GameBoard.GameboardExtents.ViewableExtentPositiveX, TiltFive.T5_GameboardSize.ViewableExtentPositiveY, TiltFive.GameBoard.GameboardExtents.ViewableExtentPositiveY, TiltFive.T5_GameboardSize.ViewableExtentPositiveZ, and TiltFive.GameBoard.GameboardExtents.ViewableExtentPositiveZ.
Vector3 TiltFive.GameBoard.GameboardExtents.GetCornerPositionInGameboardSpace | ( | Corner | corner | ) |
Gets the coordinates of the specified corner in gameboard space.
corner |
ArgumentException | Thrown when an invalid value for corner is provided. |
Definition at line 245 of file GameBoard.cs.
References TiltFive.Length.ToMeters, TiltFive.GameBoard.GameboardExtents.ViewableExtentNegativeX, TiltFive.GameBoard.GameboardExtents.ViewableExtentNegativeZ, TiltFive.GameBoard.GameboardExtents.ViewableExtentPositiveX, and TiltFive.GameBoard.GameboardExtents.ViewableExtentPositiveZ.
Vector3 TiltFive.GameBoard.GameboardExtents.GetEdgeCenterPositionInGameboardSpace | ( | Edge | edge | ) |
Gets the coordinates of the center of the specified edge in gameboard space.
edge |
ArgumentException | Thrown when an invalid value for edge is provided. |
Definition at line 272 of file GameBoard.cs.
References TiltFive.GameBoard.GameboardExtents.OriginOffsetZ, TiltFive.Length.ToMeters, TiltFive.GameBoard.GameboardExtents.ViewableExtentNegativeX, TiltFive.GameBoard.GameboardExtents.ViewableExtentNegativeZ, TiltFive.GameBoard.GameboardExtents.ViewableExtentPositiveX, and TiltFive.GameBoard.GameboardExtents.ViewableExtentPositiveZ.
Vector3 TiltFive.GameBoard.GameboardExtents.GetPhysicalCenterPositionInGameboardSpace | ( | ) |
Gets the coordinates of the center of the gameboard in gameboard space.
For the LE gameboard, the tracking origin and the 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 physical center point, making function useful for accounting for this offset.
Definition at line 298 of file GameBoard.cs.
References TiltFive.GameBoard.GameboardExtents.OriginOffsetZ, and TiltFive.Length.ToMeters.
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.
Definition at line 179 of file GameBoard.cs.
Referenced by TiltFive.GameBoard.GameboardExtents.GameboardExtents(), TiltFive.GameBoard.GameboardExtents.GetCornerPositionInGameboardSpace(), and TiltFive.GameBoard.GameboardExtents.GetEdgeCenterPositionInGameboardSpace().
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.
Definition at line 189 of file GameBoard.cs.
Referenced by TiltFive.GameBoard.GameboardExtents.GameboardExtents(), TiltFive.GameBoard.GameboardExtents.GetCornerPositionInGameboardSpace(), and TiltFive.GameBoard.GameboardExtents.GetEdgeCenterPositionInGameboardSpace().
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.
Definition at line 174 of file GameBoard.cs.
Referenced by TiltFive.GameBoard.GameboardExtents.GameboardExtents(), TiltFive.GameBoard.GameboardExtents.GetCornerPositionInGameboardSpace(), and TiltFive.GameBoard.GameboardExtents.GetEdgeCenterPositionInGameboardSpace().
Length TiltFive.GameBoard.GameboardExtents.ViewableExtentPositiveY |
The distance in meters above the gameboard origin that the viewable area extends in the positive Y direction.
Definition at line 194 of file GameBoard.cs.
Referenced by TiltFive.GameBoard.GameboardExtents.GameboardExtents().
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.
Definition at line 184 of file GameBoard.cs.
Referenced by TiltFive.GameBoard.GameboardExtents.GameboardExtents(), TiltFive.GameBoard.GameboardExtents.GetCornerPositionInGameboardSpace(), and TiltFive.GameBoard.GameboardExtents.GetEdgeCenterPositionInGameboardSpace().
|
get |
The distance from the tracking origin to the physical 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.
Definition at line 216 of file GameBoard.cs.
Referenced by TiltFive.GameBoard.GameboardExtents.GetEdgeCenterPositionInGameboardSpace(), and TiltFive.GameBoard.GameboardExtents.GetPhysicalCenterPositionInGameboardSpace().
|
get |
The distance in meters representing the side-to-side width of the viewable area of the gameboard;
Definition at line 199 of file GameBoard.cs.
|
get |
The distance in meters representing the front-to-back length of the viewable area of the gameboard;
Definition at line 203 of file GameBoard.cs.
|
get |
The distance in meters representing the height of the viewable area of the gameboard;
Definition at line 207 of file GameBoard.cs.