Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PRONTO PROJECT
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
D'HERISSART Alexandre
PRONTO PROJECT
Commits
439ecfbc
Commit
439ecfbc
authored
1 month ago
by
YE Victor
Browse files
Options
Downloads
Patches
Plain Diff
EXTREME diminution de la taille des droites
parent
c1bb5736
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
app.py
+4
-4
4 additions, 4 deletions
app.py
with
4 additions
and
4 deletions
app.py
+
4
−
4
View file @
439ecfbc
...
@@ -532,8 +532,8 @@ def extreme_result():
...
@@ -532,8 +532,8 @@ def extreme_result():
x0
,
y0
=
coord_m
[
ref
]
x0
,
y0
=
coord_m
[
ref
]
angle_rad
=
np
.
radians
(
angles
[
key
])
angle_rad
=
np
.
radians
(
angles
[
key
])
dx
=
np
.
sin
(
angle_rad
)
*
1.
1
e6
dx
=
np
.
sin
(
angle_rad
)
*
1.e6
dy
=
np
.
cos
(
angle_rad
)
*
1.
1
e6
dy
=
np
.
cos
(
angle_rad
)
*
1.e6
droites
.
append
(
LineString
([(
x0
-
dx
,
y0
-
dy
),
(
x0
+
dx
,
y0
+
dy
)]))
droites
.
append
(
LineString
([(
x0
-
dx
,
y0
-
dy
),
(
x0
+
dx
,
y0
+
dy
)]))
intersections
=
[]
intersections
=
[]
...
@@ -615,8 +615,8 @@ def extreme_result():
...
@@ -615,8 +615,8 @@ def extreme_result():
continue
continue
x0
,
y0
=
coord_m
[
ref
]
x0
,
y0
=
coord_m
[
ref
]
angle_rad
=
np
.
radians
(
angles
[
key
])
angle_rad
=
np
.
radians
(
angles
[
key
])
dx
=
np
.
sin
(
angle_rad
)
*
1.
1
e6
dx
=
np
.
sin
(
angle_rad
)
*
1.
075
e6
dy
=
np
.
cos
(
angle_rad
)
*
1.
1
e6
dy
=
np
.
cos
(
angle_rad
)
*
1.
075
e6
ax
.
plot
([
x0
-
dx
,
x0
+
dx
],
[
y0
-
dy
,
y0
+
dy
],
linestyle
=
'
--
'
,
linewidth
=
1
,
color
=
'
blue
'
,
alpha
=
0.3
)
ax
.
plot
([
x0
-
dx
,
x0
+
dx
],
[
y0
-
dy
,
y0
+
dy
],
linestyle
=
'
--
'
,
linewidth
=
1
,
color
=
'
blue
'
,
alpha
=
0.3
)
...
...
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