-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loose initial curation pass, organizing the top-level docs and main s…
…imulation types
- Loading branch information
Showing
6 changed files
with
182 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
Sources/ForceSimulation/ForceSimulation.docc/Simulation2D.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# ``ForceSimulation/Simulation2D`` | ||
|
||
A force-simulation for distributed layout within a two-dimensional space. | ||
|
||
## Topics | ||
|
||
### Creating a 2D force simulation | ||
|
||
- ``init(nodeIds:alpha:alphaMin:alphaDecay:alphaTarget:velocityDecay:setInitialStatus:)`` | ||
|
||
### Creating forces for the simulation | ||
|
||
- ``createCenterForce(center:strength:)`` | ||
- ``CenterForce`` | ||
- ``createCollideForce(radius:strength:iterationsPerTick:)`` | ||
- ``CollideForce`` | ||
- ``createLinkForce(_:stiffness:originalLength:iterationsPerTick:)-652gu`` | ||
- ``createLinkForce(_:stiffness:originalLength:iterationsPerTick:)-9iwy5`` | ||
- ``LinkForce`` | ||
- ``createManyBodyForce(strength:nodeMass:)`` | ||
- ``ManyBodyForce`` | ||
- ``createPositionForce(direction:targetOnDirection:strength:)`` | ||
- ``DirectionForce2D`` | ||
- ``createRadialForce(center:radius:strength:)`` | ||
- ``RadialForce`` | ||
|
||
### Running the simulation | ||
|
||
- ``tick(iterationCount:)`` | ||
- ``resetAlpha(_:)`` | ||
|
||
### Inspecting the simulation | ||
|
||
- ``alpha`` | ||
- ``alphaMin`` | ||
- ``alphaDecay`` | ||
- ``alphaTarget`` | ||
- ``initializedAlpha`` | ||
- ``velocityDecay`` | ||
- ``forces`` | ||
|
||
### Inspecting nodes within the simulation | ||
|
||
- ``nodeIds`` | ||
- ``nodeFixations`` | ||
- ``nodePositions`` | ||
- ``nodeVelocities`` | ||
- ``getIndex(of:)`` |
48 changes: 48 additions & 0 deletions
48
Sources/ForceSimulation/ForceSimulation.docc/Simulation3D.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# ``ForceSimulation/Simulation3D`` | ||
|
||
A force-simulation for distributed layout within a three-dimensional space. | ||
|
||
## Topics | ||
|
||
### Creating a 3D force simulation | ||
|
||
- ``init(nodeIds:alpha:alphaMin:alphaDecay:alphaTarget:velocityDecay:setInitialStatus:)`` | ||
|
||
### Creating forces for the simulation | ||
|
||
- ``createCenterForce(center:strength:)`` | ||
- ``CenterForce`` | ||
- ``createCollideForce(radius:strength:iterationsPerTick:)`` | ||
- ``CollideForce`` | ||
- ``createLinkForce(_:stiffness:originalLength:iterationsPerTick:)-2bixz`` | ||
- ``createLinkForce(_:stiffness:originalLength:iterationsPerTick:)-3sa2n`` | ||
- ``LinkForce`` | ||
- ``createManyBodyForce(strength:nodeMass:)`` | ||
- ``ManyBodyForce`` | ||
- ``createPositionForce(direction:targetOnDirection:strength:)`` | ||
- ``DirectionForce3D`` | ||
- ``createRadialForce(center:radius:strength:)`` | ||
- ``RadialForce`` | ||
|
||
### Running the simulation | ||
|
||
- ``tick(iterationCount:)`` | ||
- ``resetAlpha(_:)`` | ||
|
||
### Inspecting the simulation | ||
|
||
- ``alpha`` | ||
- ``alphaMin`` | ||
- ``alphaDecay`` | ||
- ``alphaTarget`` | ||
- ``initializedAlpha`` | ||
- ``velocityDecay`` | ||
- ``forces`` | ||
|
||
### Inspecting nodes within the simulation | ||
|
||
- ``nodeIds`` | ||
- ``nodeFixations`` | ||
- ``nodePositions`` | ||
- ``nodeVelocities`` | ||
- ``getIndex(of:)`` |
48 changes: 48 additions & 0 deletions
48
Sources/ForceSimulation/ForceSimulation.docc/SimulationKD.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# ``ForceSimulation/SimulationKD`` | ||
|
||
A force-simulation for distributed layout within a multi-dimensional space. | ||
|
||
## Topics | ||
|
||
### Creating a multi-dimensional force simulation | ||
|
||
- ``init(nodeIds:alpha:alphaMin:alphaDecay:alphaTarget:velocityDecay:setInitialStatus:)`` | ||
|
||
### Creating forces for the simulation | ||
|
||
- ``createCenterForce(center:strength:)`` | ||
- ``CenterForce`` | ||
- ``createCollideForce(radius:strength:iterationsPerTick:)`` | ||
- ``CollideForce`` | ||
- ``createLinkForce(_:stiffness:originalLength:iterationsPerTick:)-46ea4`` | ||
- ``createLinkForce(_:stiffness:originalLength:iterationsPerTick:)-9opzo`` | ||
- ``LinkForce`` | ||
- ``createManyBodyForce(strength:nodeMass:)`` | ||
- ``ManyBodyForce`` | ||
- ``createPositionForce(direction:targetOnDirection:strength:)`` | ||
- ``DirectionForce`` | ||
- ``createRadialForce(center:radius:strength:)`` | ||
- ``RadialForce`` | ||
|
||
### Running the simulation | ||
|
||
- ``tick(iterationCount:)`` | ||
- ``resetAlpha(_:)`` | ||
|
||
### Inspecting the simulation | ||
|
||
- ``alpha`` | ||
- ``alphaMin`` | ||
- ``alphaDecay`` | ||
- ``alphaTarget`` | ||
- ``initializedAlpha`` | ||
- ``velocityDecay`` | ||
- ``forces`` | ||
|
||
### Inspecting nodes within the simulation | ||
|
||
- ``nodeIds`` | ||
- ``nodeFixations`` | ||
- ``nodePositions`` | ||
- ``nodeVelocities`` | ||
- ``getIndex(of:)`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters