#pragma once #include namespace internal { // local: a sphere with center at (0, 0, 0) and radius 1 // u: planar angle from x-axis to z-axis // v: polar angle from xz-plane to y-axis // EDIT: recap v from [-pi/2, pi/2] to [0, pi] struct sphere_face_t final : subface { }; } // namespace internal namespace detail { template <> struct hasher { size_t operator()(const internal::sphere_face_t& subface) const { return hash_funcs(subface.local_to_world); } }; template <> struct eq_compare { bool operator()(const internal::sphere_face_t& lhs, const internal::sphere_face_t& rhs) const { return eq_funcs(lhs.local_to_world, rhs.local_to_world); } }; } // namespace detail