Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
Java 2 Lab 1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
aap167
Java 2 Lab 1
Merge requests
!1
An error occurred while fetching participants.
Full Laboratornaya
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Full Laboratornaya
SecondGen
into
master
Overview
15
Commits
23
Pipelines
0
Changes
21
Open
aap167
requested to merge
SecondGen
into
master
1 year ago
Overview
15
Commits
23
Pipelines
0
Changes
21
Expand
Stage 1
0
0
Merge request reports
Compare
master
version 11
274890cd
1 year ago
version 10
3eb81833
1 year ago
version 9
076e0f4e
1 year ago
version 8
a199eeed
1 year ago
version 7
f045fbdc
1 year ago
version 6
4546bef3
1 year ago
version 5
3b40fa29
1 year ago
version 4
0cd60416
1 year ago
version 3
23e7ae78
1 year ago
version 2
46f0ac5d
1 year ago
version 1
dc4b9e2a
1 year ago
master (HEAD)
and
latest version
latest version
0f10aaf9
23 commits,
1 year ago
version 11
274890cd
22 commits,
1 year ago
version 10
3eb81833
21 commits,
1 year ago
version 9
076e0f4e
20 commits,
1 year ago
version 8
a199eeed
19 commits,
1 year ago
version 7
f045fbdc
18 commits,
1 year ago
version 6
4546bef3
17 commits,
1 year ago
version 5
3b40fa29
16 commits,
1 year ago
version 4
0cd60416
15 commits,
1 year ago
version 3
23e7ae78
14 commits,
1 year ago
version 2
46f0ac5d
13 commits,
1 year ago
version 1
dc4b9e2a
10 commits,
1 year ago
21 files
+
1195
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
21
Search (e.g. *.vue) (Ctrl+P)
src/Lab1/graphics/NonAbstract/Circle.java
0 → 100644
+
51
−
0
Options
package
Lab1.graphics.NonAbstract
;
import
Lab1.graphics.NonJavaCloneable
;
import
Lab1.graphics.Vector2
;
public
class
Circle
extends
Ellipse
implements
NonJavaCloneable
{
final
float
radius
;
Circle
(
float
x
,
float
y
,
float
radius
)
{
super
(
x
,
y
,
radius
,
radius
,
0
);
this
.
radius
=
radius
;
}
Circle
(
Vector2
center
,
float
radius
)
{
super
(
center
,
radius
,
radius
,
0
);
this
.
radius
=
radius
;
}
Circle
(
Point
center
,
float
radius
)
{
super
(
center
.
getLocation
(),
radius
,
radius
,
0
);
this
.
radius
=
radius
;
}
Circle
(
Circle
og
)
{
this
(
og
.
center
,
og
.
radius
);
}
public
Circle
moveTo
(
float
x
,
float
y
)
{
Point
center
=
new
Point
(
x
,
y
);
return
new
Circle
(
center
,
radius
);
}
public
Circle
moveBy
(
float
x
,
float
y
)
{
Vector2
center
=
getCenter
();
Point
newCenter
=
new
Point
(
center
.
X
()
+
x
,
center
.
Y
()
+
y
);
return
new
Circle
(
newCenter
,
radius
);
}
@Override
public
Circle
clone
(){
return
new
Circle
(
this
);
}
@Override
public
String
toString
()
{
return
"Circle"
+
"{"
+
"center="
+
center
+
", Rad="
+
radius
+
'}'
;
}
}
Loading