Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
projetS6_Groupe4
4projetCordesVocales
Commits
df20d201
Commit
df20d201
authored
Mar 28, 2021
by
Enzo
Browse files
salut les zamis
parent
3a04efe1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
projet-type-ubuntu.depend
projet-type-ubuntu.depend
+1
-1
u2-dessin.cpp
u2-dessin.cpp
+20
-11
No files found.
projet-type-ubuntu.depend
View file @
df20d201
...
...
@@ -359,7 +359,7 @@
1616946758 /home/enzo/Documents/kitc-phelma/4projetcordesvocales/u2-dessin.h
16169
49748
source:/home/enzo/Documents/kitc-phelma/4projetcordesvocales/u2-dessin.cpp
16169
52557
source:/home/enzo/Documents/kitc-phelma/4projetcordesvocales/u2-dessin.cpp
<iostream>
<FL/Fl.H>
<FL/fl_draw.H>
...
...
u2-dessin.cpp
View file @
df20d201
...
...
@@ -133,29 +133,38 @@ void zoneDessinDessinerRessorts(double x[], double y[]) {
///création du ressort intermédiaire
double
pente
=
calculPente
(
x
[
1
],
x
[
2
],
y
[
1
],
y
[
2
]);
double
h
=
(
L_ZONE
-
X_ZONE
)
/
10
;
double
h
=
(
L_ZONE
-
X_ZONE
)
/
35
;
double
alpha
=
atan
(
pente
);
nbr2dents2
=
6
;
nbr2dents2
=
10
;
double
l
=
x
[
2
]
-
x
[
1
];
double
dl
=
l
/
float
(
nbr2dents2
);
xgap
=
-
h
*
sin
(
alpha
);
ygap
=
h
*
cos
(
alpha
);
double
dl
=
l
/
float
(
nbr2dents2
+
2
);
double
hx
=
-
h
*
sin
(
alpha
);
double
hy
=
h
*
cos
(
alpha
);
double
x_fin
;
double
y_fin
;
fl_begin_complex_polygon
();
fl_line
(
x
[
1
],
y
[
1
],
x
[
1
]
+
xgap
,
y
[
1
]
+
ygap
);
for
(
i
=
0
;
i
<
(
nbr2d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
+
nbr2dents2
*
dl
-
xgap
,
y
[
1
]
+
nbr2dents2
*
dl
-
ygap
,
x
[
2
],
y
[
2
]);
fl_line
(
x_fin
,
y_fin
,
x
[
1
]
+
(
nbr2dents2
+
1
)
*
dl
+
hx
,
y
[
1
]
+
pente
*
(
nbr2dents2
+
1
)
*
dl
);
fl_line
(
x
[
1
]
+
(
nbr2dents2
+
1
)
*
dl
+
hx
,
y
[
1
]
+
pente
*
(
nbr2dents2
+
1
)
*
dl
,
x
[
2
],
y
[
2
]);
fl_end_complex_polygon
();
}
...
...
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