The centre of the bounds as drawn, and the distance to their farthest corner.
Reimplemented from MayaFlux::Nexus::Expanse.
Definition at line 44 of file Hull.cpp.
45{
48 }
49
51 const glm::vec3 center = glm::vec3(drawn * glm::vec4(
m_local->center(), 1.0F));
52
54 for (int corner = 0; corner < 8; ++corner) {
55 const glm::vec3 local {
59 };
60 radius = std::max(
radius, glm::length(glm::vec3(drawn * glm::vec4(local, 1.0F)) - center));
61 }
63}
virtual std::pair< glm::vec3, float > reach() const
Where the region is centred and how far it reaches, for perceptions.
std::optional< Kinesis::AABB3D > m_local
std::shared_ptr< Buffers::VKBuffer > m_buf
glm::mat4 read_placement(const std::shared_ptr< Buffers::VKBuffer > &buf)
Where a buffer is drawn: the geometry transform of its primary render processor.
References m_buf, m_local, radius, MayaFlux::Nexus::Expanse::reach(), and MayaFlux::Nexus::read_placement().