Subversion Repository Public Repository

Divide-Framework

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "Headers/BoundingSphere.h"

namespace Divide {
BoundingSphere::BoundingSphere() : _computed(false),
                                   _visibility(false),
                                   _dirty(true),
                                   _radius(0.0f)
{
    _center.reset();
}

BoundingSphere::BoundingSphere(const vec3<F32>& center, F32 radius) : _computed(false),
                                                                      _visibility(false),
                                                                      _dirty(true),
                                                                      _center(center),
                                                                      _radius(radius)
{
}

BoundingSphere::BoundingSphere(vectorImpl<vec3<F32> >& points) : BoundingSphere()
{
    CreateFromPoints(points);
}

BoundingSphere::BoundingSphere(const BoundingSphere& s) {
    //WriteLock w_lock(_lock);
    this->_computed = s._computed;
    this->_visibility = s._visibility;
    this->_dirty = s._dirty;
    this->_center = s._center;
    this->_radius = s._radius;
}

void BoundingSphere::operator=(const BoundingSphere& s) {
    //WriteLock w_lock(_lock);
    this->_computed = s._computed;
    this->_visibility = s._visibility;
    this->_dirty = s._dirty;
    this->_center = s._center;
    this->_radius = s._radius;
}

}; //namespace Divide

Commits for Divide-Framework/trunk/Source Code/Core/Math/BoundingVolumes/BoundingSphere.cpp

Diff revisions: vs.
Revision Author Commited Message
337 IonutCava picture IonutCava Wed 17 Dec, 2014 17:25:16 +0000

[Ionut]
- Replaced all tabs with 4 spaces (some spacing may be off now. no way to check all the files.)
- Moved implementation details for ParamHandler, BoundingBox, BoundingSphere and ProfileTimer to proper .inl and .cpp files. (more to follow)
- Update all forward declared enums with the required storage type (as requested by the C++11 standard)