Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
99dc56ea
Commit
99dc56ea
authored
Dec 22, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix in revert for null size objects
parent
3c0f2925
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
xtt/lib/glow/src/glow_transform.cpp
xtt/lib/glow/src/glow_transform.cpp
+4
-2
xtt/lib/glow/src/glow_transform.h
xtt/lib/glow/src/glow_transform.h
+1
-1
No files found.
xtt/lib/glow/src/glow_transform.cpp
View file @
99dc56ea
...
...
@@ -142,7 +142,7 @@ double GlowTransform::y( GlowTransform *t, double x1, double y1)
return
tmp
.
y
(
x1
,
y1
);
}
void
GlowTransform
::
reverse
(
double
x
,
double
y
,
double
*
rx
,
double
*
ry
)
bool
GlowTransform
::
reverse
(
double
x
,
double
y
,
double
*
rx
,
double
*
ry
)
{
if
(
a11
==
0
||
(
a12
*
a21
-
a11
*
a22
)
==
0
)
{
...
...
@@ -150,15 +150,17 @@ void GlowTransform::reverse( double x, double y, double *rx, double *ry)
{
*
ry
=
(
x
-
a13
)
/
a12
;
*
rx
=
(
y
-
a23
)
/
a21
;
return
true
;
}
else
{
*
ry
=
*
rx
=
0
;
return
false
;
}
return
;
}
*
ry
=
(
a11
*
(
a23
-
y
)
-
a21
*
(
a13
-
x
))
/
(
a12
*
a21
-
a11
*
a22
);
*
rx
=
(
x
-
a12
*
*
ry
-
a13
)
/
a11
;
return
true
;
}
double
GlowTransform
::
vertical_scale
(
GlowTransform
*
t
)
...
...
xtt/lib/glow/src/glow_transform.h
View file @
99dc56ea
...
...
@@ -21,7 +21,7 @@ class GlowTransform {
double
y
(
double
x1
,
double
y1
);
double
x
(
GlowTransform
*
t
,
double
x1
,
double
y1
);
double
y
(
GlowTransform
*
t
,
double
x1
,
double
y1
);
void
reverse
(
double
x
,
double
y
,
double
*
rx
,
double
*
ry
);
bool
reverse
(
double
x
,
double
y
,
double
*
rx
,
double
*
ry
);
void
save
(
ofstream
&
fp
,
glow_eSaveMode
mode
);
void
open
(
ifstream
&
fp
);
double
rot
(
GlowTransform
*
t
)
{
return
t
->
rotation
+
rotation
;};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment