Base class for various Shape Subclasses that are used for calculating vertex positions based on a center position and size.
More...
|
static Vector3 [] | InterpolateShapes (Vector3[] s1, Vector3[] s2, float alpha) |
| Interpolate 2 Shapes with different parameters and return their vertices. More...
|
|
Base class for various Shape Subclasses that are used for calculating vertex positions based on a center position and size.
◆ Shape()
Shape.Shape |
( |
Vector3 |
position, |
|
|
DrawMode |
drawMode |
|
) |
| |
◆ Bbox()
abstract float [] Shape.Bbox |
( |
| ) |
|
|
pure virtual |
◆ calcVertices()
abstract void Shape.calcVertices |
( |
| ) |
|
|
protectedpure virtual |
◆ GetVertices()
Vector3 [] Shape.GetVertices |
( |
bool |
update | ) |
|
Return vertices of this shape. If update parameter is false, stored vertices are returned, else they are recalculated.
- Parameters
-
- Returns
◆ InterpolateShapes()
static Vector3 [] Shape.InterpolateShapes |
( |
Vector3 [] |
s1, |
|
|
Vector3 [] |
s2, |
|
|
float |
alpha |
|
) |
| |
|
static |
Interpolate 2 Shapes with different parameters and return their vertices.
- Parameters
-
- Returns
◆ _verts
◆ drawMode
◆ position
The documentation for this class was generated from the following file:
- src/geometry shader sample project/StandardGeometryShader-master/Assets/Layer/Shape.cs