Class TrianglePrismGeometryUtils
Note
This class is available only in Tessera Pro
Inheritance
TrianglePrismGeometryUtils
Assembly: Tessera.dll
Syntax
public static class TrianglePrismGeometryUtils
Methods
CoordRotate(TriangleRotation, Vector3Int)
Declaration
public static Vector3Int CoordRotate(TriangleRotation rotation, Vector3Int coords)
Parameters
Returns
Type |
Description |
Vector3Int |
|
FindCell(Vector3, Vector3, Vector3, out Vector3Int)
Declaration
public static bool FindCell(Vector3 origin, Vector3 cellSize, Vector3 position, out Vector3Int cell)
Parameters
Type |
Name |
Description |
Vector3 |
origin |
|
Vector3 |
cellSize |
|
Vector3 |
position |
|
Vector3Int |
cell |
|
Returns
FromSide(int)
Declaration
public static TrianglePrismFaceDir FromSide(int side)
Parameters
Type |
Name |
Description |
int |
side |
|
Returns
FromTriCoords(Vector3Int, int)
Declaration
public static Vector3Int? FromTriCoords(Vector3Int coords, int y = 0)
Parameters
Type |
Name |
Description |
Vector3Int |
coords |
|
int |
y |
|
Returns
Type |
Description |
Vector3Int? |
|
GetCellCenter(Vector3Int, Vector3, Vector3)
Declaration
public static Vector3 GetCellCenter(Vector3Int cell, Vector3 origin, Vector3 cellSize)
Parameters
Type |
Name |
Description |
Vector3Int |
cell |
|
Vector3 |
origin |
|
Vector3 |
cellSize |
|
Returns
Pack(Vector2Int, bool, int)
Declaration
public static Vector3Int Pack(Vector2Int tri, bool pointsUp, int y)
Parameters
Type |
Name |
Description |
Vector2Int |
tri |
|
bool |
pointsUp |
|
int |
y |
|
Returns
Type |
Description |
Vector3Int |
|
PointsUp(Vector3Int)
Declaration
public static bool PointsUp(Vector3Int cell)
Parameters
Type |
Name |
Description |
Vector3Int |
cell |
|
Returns
Standardize(Vector2)
Declaration
public static Vector2 Standardize(Vector2 p)
Parameters
Type |
Name |
Description |
Vector2 |
p |
|
Returns
ToTriCoords(Vector3Int)
Declaration
public static Vector3Int ToTriCoords(Vector3Int cell)
Parameters
Type |
Name |
Description |
Vector3Int |
cell |
|
Returns
Type |
Description |
Vector3Int |
|
Unpack(Vector3Int)
Declaration
public static (Vector2Int, bool, int) Unpack(Vector3Int cell)
Parameters
Type |
Name |
Description |
Vector3Int |
cell |
|
Returns
Type |
Description |
(Vector2Int, bool, int) |
|
Unstandardize(Vector2)
Declaration
public static Vector2 Unstandardize(Vector2 p)
Parameters
Type |
Name |
Description |
Vector2 |
p |
|
Returns