MCPcopy Create free account
hub / github.com/crownengine/crown / obb_sphere

Function obb_sphere

src/world/render_world.cpp:63–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static Sphere obb_sphere(const OBB &obb)
64{
65 const Vector3 scl = scale(obb.tm);
66 const Vector3 half = {
67 obb.half_extents.x * scl.x,
68 obb.half_extents.y * scl.y,
69 obb.half_extents.z * scl.z
70 };
71
72 Sphere s;
73 s.c = translation(obb.tm);
74 s.r = length(half);
75 return s;
76}
77
78namespace culling_set
79{

Callers 1

lod_group_set_obbMethod · 0.85

Calls 1

lengthFunction · 0.50

Tested by

no test coverage detected