Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 330 vs 331 for /trunk/Source Code/Rendering/Camera/Headers/OrbitCamera.h

Diff revisions: vs.
  @@ -28,21 +28,32 @@
28 28 namespace Divide {
29 29
30 30 class SceneGraphNode;
31 - /// A camera that always looks at a given target and orbits around it. It's position / direction can't be changed by user input
31 + /// A camera that always looks at a given target and orbits around it.
32 + /// It's position / direction can't be changed by user input
32 33 class OrbitCamera : public Camera {
33 34 public:
34 - OrbitCamera(const CameraType& type = ORBIT, const vec3<F32>& eye = VECTOR3_ZERO);
35 + OrbitCamera(const CameraType& type = ORBIT,
36 + const vec3<F32>& eye = VECTOR3_ZERO);
35 37
36 - void setTarget(SceneGraphNode* const sgn, const vec3<F32>& offsetDirection = vec3<F32>(0, 0.75, 1.0));
38 + void setTarget(SceneGraphNode* const sgn,
39 + const vec3<F32>& offsetDirection = vec3<F32>(0, 0.75, 1.0));
37 40
38 - inline void maxRadius(F32 radius) {_maxRadius = radius;}
39 - inline F32 maxRadius() const {return _maxRadius;}
41 + inline void maxRadius(F32 radius) {
42 + _maxRadius = radius;
43 + }
40 44
41 - inline void minRadius(F32 radius) {_minRadius = radius;}
42 - inline F32 minRadius() const {return _minRadius;}
45 + inline void minRadius(F32 radius) {
46 + _minRadius = radius;
47 + }
43 48
44 - inline void curRadius(F32 radius) {_curRadius = radius; CLAMP<F32>(_curRadius, _minRadius, _maxRadius);}
45 - inline F32 curRadius() const {return _curRadius;}
49 + inline void curRadius(F32 radius) {
50 + _curRadius = radius;
51 + CLAMP<F32>(_curRadius, _minRadius, _maxRadius);
52 + }
53 +
54 + inline F32 maxRadius() const { return _maxRadius; }
55 + inline F32 minRadius() const { return _minRadius; }
56 + inline F32 curRadius() const { return _curRadius; }
46 57
47 58 virtual void update(const U64 deltaTime);
48 59 virtual void move(F32 dx, F32 dy, F32 dz);