MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / FromSphere

Method FromSphere

Source/Engine/Core/Math/BoundingBox.cpp:75–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void BoundingBox::FromSphere(const BoundingSphere& sphere, BoundingBox& result)
76{
77 result = BoundingBox(
78 Vector3(sphere.Center.X - sphere.Radius, sphere.Center.Y - sphere.Radius, sphere.Center.Z - sphere.Radius),
79 Vector3(sphere.Center.X + sphere.Radius, sphere.Center.Y + sphere.Radius, sphere.Center.Z + sphere.Radius)
80 );
81}
82
83BoundingBox BoundingBox::FromSphere(const BoundingSphere& sphere)
84{

Callers 3

PickMethod · 0.45
UpdateMethod · 0.45

Calls 2

BoundingBoxFunction · 0.70
Vector3Class · 0.70

Tested by

no test coverage detected