36 return {cosPhi *
Cos(theta),
Sin(phi), cosPhi *
Sin(theta)};
constexpr T ATan2(T y, T x)
real GetPhi() const
Returns the elevation angle (φ) [rad] from the stored fiber direction.
static constexpr Real3 ComputeFiberDirection(real theta, real phi)
Computes the fiber direction unit vector from spherical angles.
real GetTheta() const
Returns the azimuthal angle (θ) [rad] from the stored fiber direction.
Real3 anisoDir
Fiber direction as a unit vector: (cos(φ)cos(θ), sin(φ), cos(φ)sin(θ)).