Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Analyst WebApp
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fidentis
Analyst WebApp
Commits
8a88a6c5
There was an error fetching the commit references. Please try again later.
Commit
8a88a6c5
authored
3 years ago
by
Daniel Schramm
Browse files
Options
Downloads
Patches
Plain Diff
Negative radius check implemented
parent
f37c1880
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Comparison/src/main/java/cz/fidentis/analyst/visitors/mesh/PrioritySphere.java
+4
-1
4 additions, 1 deletion
...ava/cz/fidentis/analyst/visitors/mesh/PrioritySphere.java
with
4 additions
and
1 deletion
Comparison/src/main/java/cz/fidentis/analyst/visitors/mesh/PrioritySphere.java
+
4
−
1
View file @
8a88a6c5
...
@@ -41,13 +41,16 @@ public class PrioritySphere extends MeshVisitor {
...
@@ -41,13 +41,16 @@ public class PrioritySphere extends MeshVisitor {
*
*
* @param sphereCenterPosition Position of the center of the sphere in which
* @param sphereCenterPosition Position of the center of the sphere in which
* the priorities will be calculated
* the priorities will be calculated
* @param sphereRadius Radius of the sphere
* @param sphereRadius Radius of the sphere
(must be greater than or equal to 0)
*/
*/
public
PrioritySphere
(
Point3d
sphereCenterPosition
,
double
sphereRadius
)
{
public
PrioritySphere
(
Point3d
sphereCenterPosition
,
double
sphereRadius
)
{
if
(
sphereCenterPosition
==
null
)
{
if
(
sphereCenterPosition
==
null
)
{
throw
new
IllegalArgumentException
(
"sphereCenterPosition"
);
throw
new
IllegalArgumentException
(
"sphereCenterPosition"
);
}
}
this
.
sphereCenterPosition
=
sphereCenterPosition
;
this
.
sphereCenterPosition
=
sphereCenterPosition
;
if
(
sphereRadius
<
0
)
{
throw
new
IllegalArgumentException
(
"sphereRadius"
);
}
this
.
sphereRadius
=
sphereRadius
;
this
.
sphereRadius
=
sphereRadius
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment