MCPcopy Create free account
hub / github.com/TheRealMJP/DXRPathTracer / AngleBetween

Function AngleBetween

SampleFramework12/v1.02/Graphics/Skybox.cpp:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33static const float CosPhysicalSunSize = std::cos(PhysicalSunSize);
34
35static float AngleBetween(const Float3& dir0, const Float3& dir1)
36{
37 return std::acos(std::max(Float3::Dot(dir0, dir1), 0.00001f));
38}
39
40// Returns the result of performing a irradiance integral over the portion
41// of the hemisphere covered by a region with angular radius = theta

Callers 2

InitMethod · 0.85
SampleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected