7#include <Common/assertion.h>
24 explicit TDisk(T radius);
35 const std::array<T, 2>& sample,
40 const std::array<T, 2>& sample,
48 T uniformSamplePdfA()
const;
A 2-D disk with normal facing up (0, 1, 0).
Definition TDisk.h:19
TVector3< T > sampleToSurfaceOriented(const std::array< T, 2 > &sample, const TVector3< T > &normal=TVector3< T >(0, 1, 0), const TVector3< T > &offset=TVector3< T >(0)) const
Definition TDisk.ipp:69
T getArea() const
Definition TDisk.ipp:23
TVector3< T > sampleToSurface(const std::array< T, 2 > &sample) const
Definition TDisk.ipp:29
static TDisk makeUnit()
Definition TDisk.ipp:10
TVector2< T > sampleToSurface2D(const std::array< T, 2 > &sample) const
Definition TDisk.ipp:43
Represents a 2-D vector.
Definition TVector2.h:19
Represents a 3-D vector.
Definition TVector3.h:17
Math functions and utilities.
Definition TransformInfo.h:10