Class ShearTestInitializer
Namespace: AS2.Algos.SuboracleTest
Assembly: .dll
Syntax
public class ShearTestInitializer : InitializationMethod
Constructors
| Edit this page View SourceShearTestInitializer(ParticleSystem)
Declaration
public ShearTestInitializer(ParticleSystem system)
Parameters
| Type | Name | Description |
|---|---|---|
| ParticleSystem | system |
Methods
| Edit this page View SourceGenerate(int, Direction, bool, int)
Declaration
public void Generate(int numParticles = 5, Direction mainDir = Direction.NONE, bool clockwise = true, int count = 1)
Parameters
| Type | Name | Description |
|---|---|---|
| int | numParticles | |
| Direction | mainDir | |
| bool | clockwise | |
| int | count |
GenerateLine(Vector2Int, Direction, int)
Generates a straight line of length length
starting at startPos in direction dir.
Declaration
private List<Vector2Int> GenerateLine(Vector2Int startPos, Direction dir, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2Int | startPos | The starting position of the line. |
| Direction | dir | The direction of the line. |
| int | length | The number of particles in the line. |
Returns
| Type | Description |
|---|---|
| List<Vector2Int> | A list of positions forming the line. |