|
Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
|
A bond concerning an angle. More...
#include <tfAngle.h>

Public Member Functions | |
| void | init (Potential *potential, struct ParticleHandle *p1, struct ParticleHandle *p2, struct ParticleHandle *p3, uint32_t flags=0) |
| std::string | toString () |
| Get a JSON string representation. | |
Static Public Member Functions | |
| static rendering::Style * | styleDef () |
| Get the default style. | |
| static AngleHandle * | create (Potential *potential, struct ParticleHandle *p1, struct ParticleHandle *p2, struct ParticleHandle *p3, uint32_t flags=0) |
| Creates an angle bond. | |
| static Angle * | fromString (const std::string &str) |
| Create from a JSON string representation. | |
Public Attributes | |
| uint32_t | flags |
| int | i |
| int | j |
| int | k |
| uint32_t | id |
| uint64_t | creation_time |
| FPTYPE | half_life |
| FPTYPE | dissociation_energy |
| FPTYPE | potential_energy |
| struct Potential * | potential |
| struct rendering::Style * | style |
A bond concerning an angle.
If you're building a model, you should probably instead be working with a AngleHandle.
|
static |
Creates an angle bond.
Automatically updates when running on a CUDA device.
| potential | potential of the bond |
| p1 | first outer particle |
| p2 | center particle |
| p3 | second outer particle |
| flags | angle flags |
|
static |
Create from a JSON string representation.
The returned angle is not automatically registered with the engine.
| str |
| FPTYPE TissueForge::Angle::half_life |
half life decay time for this bond.