Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Prog2
/
labor_peldak
/
lab_07
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e1964254
authored
4 years ago
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile jav + typo
parent
c2feb086
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
Alakzatlab/alakzat2_main.cpp
+1
-1
Alakzatlab/alakzat_main.cpp
+1
-1
Alakzatlab/ellipszis.h
+5
-5
No files found.
Alakzatlab/alakzat2_main.cpp
View file @
e1964254
...
...
@@ -8,7 +8,7 @@
* >= 3 - van már Rajztabla osztály, létrehozható, meszüntethető (ez az alapeset)
* >= 4 - törlés kivételével minden Rajztabla funkciót kipróbálunk
* >= 5 - törlést is próbáljuk
* >= 6 - globális rajtabla insertert is kipróbáljuk
* >= 6 - globális raj
z
tabla insertert is kipróbáljuk
* >= 7 - szorgalmi: téglalap osztály is van
*/
...
...
This diff is collapsed.
Click to expand it.
Alakzatlab/alakzat_main.cpp
View file @
e1964254
...
...
@@ -56,7 +56,7 @@ int main(int argc, char** argv) {
#endif // ELKESZULT
#if ELKESZULT >= 2
/// Létrehozunk egy ellipszist középpontból, sugárból és excentritásból
/// Létrehozunk egy ellipszist középpontból, sugárból és excentri
ci
tásból
std
::
cout
<<
"
\n
"
;
Ellipszis
e1
(
Pont
(
100
,
100
),
20
,
0.5
,
GREEN
);
std
::
cout
<<
e1
<<
std
::
endl
;
// kiírjuk az adatait
...
...
This diff is collapsed.
Click to expand it.
Alakzatlab/ellipszis.h
View file @
e1964254
...
...
@@ -16,20 +16,20 @@
#include "kor.h"
/// Ellipszis osztály.
/// A Kor adatait excentritás értékkel bővítjük
/// A Kor adatait excentri
ci
tás értékkel bővítjük
class
Ellipszis
:
public
Kor
{
double
e
;
/// excentritás értéke [ e = c/a, e = sqrt(1-b^2/a^2) ]
double
e
;
/// excentri
ci
tás értéke [ e = c/a, e = sqrt(1-b^2/a^2) ]
public:
/// konstruktor 2 pontból
/// @param p0 - kezdőpont
/// @param r - sugár
/// @param e - excentritás
/// @param e - excentri
ci
tás
/// @param sz - szín és átlátszóság
Ellipszis
(
const
Pont
&
p0
,
int
r
,
double
e
,
Szin
sz
)
:
Kor
(
p0
,
r
,
sz
),
e
(
e
)
{
}
/// Ellipszis excentri
tásának lekérdez
se
/// @return excentritás
/// Ellipszis excentri
citásának lekérdezé
se
/// @return excentri
ci
tás
double
gete
()
const
{
return
e
;
}
/// Eltipszist rajzol
...
...
This diff is collapsed.
Click to expand it.
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