Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TULIP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NUI
TULIP
Commits
9d58dc0e
Commit
9d58dc0e
authored
Sep 17, 2020
by
Nico Mack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in getBoundingBoxAtAngle method
parent
a35d5466
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
TULIP/src/lu/list/itis/dkd/tui/utility/ShapeUtils.java
TULIP/src/lu/list/itis/dkd/tui/utility/ShapeUtils.java
+1
-1
No files found.
TULIP/src/lu/list/itis/dkd/tui/utility/ShapeUtils.java
View file @
9d58dc0e
...
...
@@ -1162,7 +1162,7 @@ public class ShapeUtils {
public
static
BoundingBox
getBoundingBoxAtAngle
(
Shape
shape
,
double
angle
)
{
Point
centre
=
centroidOf
(
shape
);
AffineTransform
rotation
=
AffineTransform
.
getRotateInstance
(
angle
,
centre
.
getX
(),
centre
.
getY
());
AffineTransform
rotation
=
AffineTransform
.
getRotateInstance
(
-
angle
,
centre
.
getX
(),
centre
.
getY
());
Shape
rotated
=
rotation
.
createTransformedShape
(
shape
);
return
new
BoundingBox
(
rotated
.
getBounds2D
(),
angle
);
...
...
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