new FBD(position, howManyForces, showResultant)
Makes a free-body diagram.
Parameters:
Name |
Type |
Description |
position |
p5.Vector
|
The position vector. |
howManyForces |
number
|
Choose from 1, 2, or 3 forces to display. |
showResultant |
bool
|
Display the resulting forces. |
Properties:
Name |
Type |
Description |
mag |
array
|
Magnitude of each of the forces. |
direction |
array
|
Direction of each of the forces. |
labels |
array
|
Labels for each of the forces. |
offsets |
array
|
Offset value for each of the forces. |
FBD.display() |
method
|
Draws the FBD object. |
FBD.update() |
method
|
Updates the FBD object. |
- Source: