diff options
author | Vincent-Michael <Vincent_Michael@gmx.de> | 2014-08-23 16:41:54 +0200 |
---|---|---|
committer | Vincent-Michael <Vincent_Michael@gmx.de> | 2014-08-23 16:41:54 +0200 |
commit | 4a29c73403c4dc713a8a31cb96289adff2b910c1 (patch) | |
tree | de0c6b191031bac7fb2764edb2a81382a331f81c /dep/g3dlite/source/Line.cpp | |
parent | b90329d63acaecb1f074dd2b303561baa9f639a2 (diff) | |
parent | 1255434882777053bca06656786abc1a598deda9 (diff) |
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Diffstat (limited to 'dep/g3dlite/source/Line.cpp')
-rw-r--r-- | dep/g3dlite/source/Line.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dep/g3dlite/source/Line.cpp b/dep/g3dlite/source/Line.cpp index 195ae7197f2..2ced4a78bd8 100644 --- a/dep/g3dlite/source/Line.cpp +++ b/dep/g3dlite/source/Line.cpp @@ -33,19 +33,19 @@ Vector3 Line::intersection(const Plane& plane) const { Line::Line(class BinaryInput& b) { - deserialize(b); + deserialize(b); } void Line::serialize(class BinaryOutput& b) const { - _point.serialize(b); - _direction.serialize(b); + _point.serialize(b); + _direction.serialize(b); } void Line::deserialize(class BinaryInput& b) { - _point.deserialize(b); - _direction.deserialize(b); + _point.deserialize(b); + _direction.deserialize(b); } @@ -80,7 +80,7 @@ Vector3 Line::closestPoint(const Line& B, float& minDist) const { float t1 = R.dot(U2); - minDist = abs(P21.dot(M)) / sqrt(m2); + minDist = (float)abs(P21.dot(M)) / sqrt(m2); return P1 + t1 * U1; } |