Loading...
Searching...
No Matches
Samplers-Impl.hpp
Go to the documentation of this file.
std::enable_if_t<(IsMatrixSizeDynamic< Rows, Cols >()||(Rows==3 &&Cols==1)), std::tuple< Matrix< U, 3, 1 >, Matrix< U, 3, 1 > > Tangentials() const
Returns the tangential vectors for this vector.
Definition Matrix.hpp:30
Definition pybind11Utils.hpp:21
Vector3< T > UniformSampleHemisphere(T u1, T u2, const Vector3< T > &normal)
Returns randomly sampled point within a unit hemisphere.
Definition Samplers-Impl.hpp:54
Vector3< T > UniformSampleCone(T u1, T u2, const Vector3< T > &axis, T angle)
Returns randomly sampled direction within a cone.
Definition Samplers-Impl.hpp:40
Vector3< T > CosineWeightedSampleHemisphere(T u1, T u2, const Vector3< T > &normal)
Returns weighted sampled point on a hemisphere.
Definition Samplers-Impl.hpp:67
Vector2< T > UniformSampleDisk(T u1, T u2)
Returns randomly a point on a disk.
Definition Samplers-Impl.hpp:93
Vector3< T > UniformSampleSphere(T u1, T u2)
Returns randomly a point on a sphere.
Definition Samplers-Impl.hpp:81
1.9.8