4 Atom::Atom(
float x,
float y,
float z, glm::vec3 color,
float radius): _position(glm::vec4(x,y,z,1)), _color(color), _radius(radius) {
8 Atom::Atom(
float x,
float y,
float z, glm::vec3 color, glm::vec3 chainColor,
float radius): _position(glm::vec4(x,y,z,1)), _color(color), _chainColor(chainColor), _radius(radius) {
32 _color = glm::vec3(r,g,b);
37 _position.x += offset_x;
38 _position.y += offset_y;
39 _position.z += offset_z;
44 glm::vec3 Atom::GetChainColor()
const {
48 void Atom::SetChainColor(
float r,
float g,
float b) {
49 _chainColor = glm::vec3(r,g,b);