BioDynaMo
v1.05.120-25dc9790
|
Go to the documentation of this file.
24 if (displacement[0] == 0 && displacement[1] == 0 && displacement[2] == 0) {
37 real_t radius = std::sqrt(local_cartesian[0] * local_cartesian[0] +
38 local_cartesian[1] * local_cartesian[1] +
39 local_cartesian[2] * local_cartesian[2]);
40 return {radius, std::acos(local_cartesian[2] / radius),
41 std::atan2(local_cartesian[1], local_cartesian[0])};
void UpdatePosition(const Real3 &delta)
static const Real3 kYAxis
Second axis of the local coordinate system.
Real3 TransformCoordinatesGlobalToPolar(const Real3 &coord) const
void SetTractorForce(const Real3 &tractor_force)
MathArray< real_t, 3 > Real3
Aliases for a size 3 MathArray.
static const Real3 kXAxis
First axis of the local coordinate system.
void ApplyDisplacement(const Real3 &displacement) override
static const Real3 kZAxis
Third axis of the local coordinate system.
Real3 position_
NB: Use setter and don't assign values directly.