OSDN Git Service
(root)
/
radegast
/
radegast.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
29013a6
)
Don't use magic numbers
author
Latif Khalifa
<latifer@streamgrid.net>
Wed, 25 Jun 2014 04:38:00 +0000
(06:38 +0200)
committer
Latif Khalifa
<latifer@streamgrid.net>
Wed, 25 Jun 2014 04:38:00 +0000
(06:38 +0200)
Radegast/GUI/Rendering/Frustum.cs
patch
|
blob
|
history
diff --git
a/Radegast/GUI/Rendering/Frustum.cs
b/Radegast/GUI/Rendering/Frustum.cs
index
3864b04
..
5c50d6f
100644
(file)
--- a/
Radegast/GUI/Rendering/Frustum.cs
+++ b/
Radegast/GUI/Rendering/Frustum.cs
@@
-163,12
+163,12
@@
namespace Radegast.Rendering
public class BoundingVolume
{
public class BoundingVolume
{
- Vector3 Min = new Vector3(
99999, 99999, 99999
);
- Vector3 Max = new Vector3(
-99999, -99999, -99999
);
+ Vector3 Min = new Vector3(
float.MaxValue, float.MaxValue, float.MaxValue
);
+ Vector3 Max = new Vector3(
float.MinValue, float.MinValue, float.MinValue
);
float R = 0f;
float R = 0f;
- public Vector3 ScaledMin = new Vector3(
99999, 99999, 99999
);
- public Vector3 ScaledMax = new Vector3(
-99999, -99999, -99999
);
+ public Vector3 ScaledMin = new Vector3(
float.MaxValue, float.MaxValue, float.MaxValue
);
+ public Vector3 ScaledMax = new Vector3(
float.MinValue, float.MinValue, float.MinValue
);
public float ScaledR = 0f;
public void CalcScaled(Vector3 scale)
public float ScaledR = 0f;
public void CalcScaled(Vector3 scale)