Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateFromSphere() [2/2]

static void Microsoft.Xna.Framework.BoundingBox.CreateFromSphere ( ref BoundingSphere sphere,
out BoundingBox result )
inlinestatic

Definition at line 141 of file BoundingBox.cs.

142 {
143 result.Min.X = sphere.Center.X - sphere.Radius;
144 result.Min.Y = sphere.Center.Y - sphere.Radius;
145 result.Min.Z = sphere.Center.Z - sphere.Radius;
146 result.Max.X = sphere.Center.X + sphere.Radius;
147 result.Max.Y = sphere.Center.Y + sphere.Radius;
148 result.Max.Z = sphere.Center.Z + sphere.Radius;
149 }