Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2016-03-26 14:21:54 +0300
committerAlessandro Ranellucci <aar@cpan.org>2016-03-26 14:21:54 +0300
commit660b56acb5cbdd05c989473a0a863c88376cd54a (patch)
tree62589c14ff6ce58fb508e1e7846cfa14d12bad38 /xs/src/libslic3r/Line.cpp
parentf5a5eb37362bc6416949bf336cc92e8860e9e887 (diff)
Fixed type error
Diffstat (limited to 'xs/src/libslic3r/Line.cpp')
-rw-r--r--xs/src/libslic3r/Line.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/xs/src/libslic3r/Line.cpp b/xs/src/libslic3r/Line.cpp
index 1940402ed..c98750e84 100644
--- a/xs/src/libslic3r/Line.cpp
+++ b/xs/src/libslic3r/Line.cpp
@@ -182,14 +182,14 @@ Line::extend_start(double distance)
bool
Line::intersection(const Line& line, Point* intersection) const
{
- double denom = ((line.b.y - line.a.y)*(this->b.x - this->a.x)) -
- ((line.b.x - line.a.x)*(this->b.y - this->a.y));
+ double denom = ((double)(line.b.y - line.a.y)*(this->b.x - this->a.x)) -
+ ((double)(line.b.x - line.a.x)*(this->b.y - this->a.y));
- double nume_a = ((line.b.x - line.a.x)*(this->a.y - line.a.y)) -
- ((line.b.y - line.a.y)*(this->a.x - line.a.x));
+ double nume_a = ((double)(line.b.x - line.a.x)*(this->a.y - line.a.y)) -
+ ((double)(line.b.y - line.a.y)*(this->a.x - line.a.x));
- double nume_b = ((this->b.x - this->a.x)*(this->a.y - line.a.y)) -
- ((this->b.y - this->a.y)*(this->a.x - line.a.x));
+ double nume_b = ((double)(this->b.x - this->a.x)*(this->a.y - line.a.y)) -
+ ((double)(this->b.y - this->a.y)*(this->a.x - line.a.x));
if (fabs(denom) < EPSILON) {
if (fabs(nume_a) < EPSILON && fabs(nume_b) < EPSILON) {