An atom structure.
More...
#include <atom.h>
|
| Atom (Element symbol, glm::vec3 position=glm::vec3(0), float scale=1.0f, glm::vec4 colour=glm::vec4(1.0, 0.5, 0.5, 1.0), glm::vec3 velocity=glm::vec3(0), glm::vec3 force=glm::vec3(0)) |
| Construct a Atom of a given Element.
|
|
| Atom (glm::vec3 position=glm::vec3(0), float scale=1.0f, glm::vec4 colour=glm::vec4(1.0, 0.5, 0.5, 1.0), glm::vec3 velocity=glm::vec3(0), glm::vec3 force=glm::vec3(0)) |
| Construct a Atom of unknown Element type.
|
|
◆ Atom() [1/2]
Atom::Atom |
( |
Element |
symbol, |
|
|
glm::vec3 |
position = glm::vec3(0) , |
|
|
float |
scale = 1.0f , |
|
|
glm::vec4 |
colour = glm::vec4(1.0, 0.5, 0.5, 1.0) , |
|
|
glm::vec3 |
velocity = glm::vec3(0) , |
|
|
glm::vec3 |
force = glm::vec3(0) |
|
) |
| |
|
inline |
Construct a Atom of a given Element.
- Parameters
-
Element | the atoms element type. |
position | the atoms cartesian coordinates. |
scale | the atoms spherical radius. |
velocity | the atoms velocity. |
force | the atoms force. |
colour | the atoms colour. |
◆ Atom() [2/2]
Atom::Atom |
( |
glm::vec3 |
position = glm::vec3(0) , |
|
|
float |
scale = 1.0f , |
|
|
glm::vec4 |
colour = glm::vec4(1.0, 0.5, 0.5, 1.0) , |
|
|
glm::vec3 |
velocity = glm::vec3(0) , |
|
|
glm::vec3 |
force = glm::vec3(0) |
|
) |
| |
|
inline |
Construct a Atom of unknown Element type.
- Parameters
-
position | the atoms cartesian coordinates. |
scale | the atoms spherical radius. |
velocity | the atoms velocity. |
force | the atoms force. |
colour | the atoms colour. |
◆ colour
◆ force
◆ position
◆ scale
◆ symbol
◆ velocity
The documentation for this class was generated from the following file: