Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 646 vs 648 for /trunk/Source Code/Core/Math/BoundingVolumes/Headers/BoundingBox.inl

Diff revisions: vs.
  @@ -1,5 +1,5 @@
1 1 /*
2 - Copyright (c) 2015 DIVIDE-Studio
2 + Copyright (c) 2016 DIVIDE-Studio
3 3 Copyright (c) 2009 Ionut Cava
4 4
5 5 This file is part of DIVIDE Framework.
  @@ -59,6 +59,11 @@
59 59 }
60 60 }
61 61
62 + inline void BoundingBox::createFromSphere(const vec3<F32>& center, F32 radius) {
63 + _max.set(center + radius);
64 + _min.set(center - radius);
65 + }
66 +
62 67 inline void BoundingBox::add(const vec3<F32>& v) {
63 68 // WriteLock w_lock(_lock);
64 69 if (v.x > _max.x) {