faunus
Public Member Functions | List of all members
Faunus::ParticlePropertyBase Struct Referenceabstract

Base class for particle properties. More...

#include <particle.h>

Inheritance diagram for Faunus::ParticlePropertyBase:
Inheritance graph
[legend]

Public Member Functions

virtual void to_json (json &j) const =0
 Convert to JSON object.
 
virtual void from_json (const json &j)=0
 Convert from JSON object.
 
void rotate (const Eigen::Quaterniond &q, const Eigen::Matrix3d &)
 Internal rotation. More...
 

Detailed Description

Base class for particle properties.

Todo:
Is this really needed?

Member Function Documentation

◆ rotate()

void Faunus::ParticlePropertyBase::rotate ( const Eigen::Quaterniond &  q,
const Eigen::Matrix3d &   
)

Internal rotation.

Todo:
Inefficient to pass both Quaternion and rotation matrix.

This is currently done since tensors are rotated using the latter. Could these be rotated using quaternions?


The documentation for this struct was generated from the following files: