Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Failframeit
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FrameIT
Failframeit
Commits
55cd4a39
Commit
55cd4a39
authored
4 years ago
by
John Schihada
Browse files
Options
Downloads
Patches
Plain Diff
Adjusted Labels of Distance- and Angle-Facts
parent
df9ef845
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Assets/Scripts/InteractionEngine/Fact.cs
+10
-0
10 additions, 0 deletions
Assets/Scripts/InteractionEngine/Fact.cs
with
10 additions
and
0 deletions
Assets/Scripts/InteractionEngine/Fact.cs
+
10
−
0
View file @
55cd4a39
...
...
@@ -146,6 +146,11 @@ public LineFact(int i, int pid1, int pid2)
this
.
Pid2
=
pid2
;
PointFact
pf1
=
CommunicationEvents
.
Facts
.
Find
((
x
=>
x
.
Id
==
pid1
))
as
PointFact
;
PointFact
pf2
=
CommunicationEvents
.
Facts
.
Find
((
x
=>
x
.
Id
==
pid2
))
as
PointFact
;
//Label is currently set to Fact.setId
//Set Label to StringConcatenation of Points
this
.
Label
=
pf1
.
Label
+
pf2
.
Label
;
string
p1URI
=
pf1
.
backendURI
;
string
p2URI
=
pf2
.
backendURI
;
float
v
=
(
pf1
.
Point
-
pf2
.
Point
).
magnitude
;
...
...
@@ -274,6 +279,11 @@ public AngleFact(int i, int pid1, int pid2, int pid3)
PointFact
pf1
=
CommunicationEvents
.
Facts
.
Find
((
x
=>
x
.
Id
==
pid1
))
as
PointFact
;
PointFact
pf2
=
CommunicationEvents
.
Facts
.
Find
((
x
=>
x
.
Id
==
pid2
))
as
PointFact
;
PointFact
pf3
=
CommunicationEvents
.
Facts
.
Find
((
x
=>
x
.
Id
==
pid3
))
as
PointFact
;
//Label is currently set to Fact.setId
//Set Label to StringConcatenation of Points
this
.
Label
=
"∠"
+
pf1
.
Label
+
pf2
.
Label
+
pf3
.
Label
;
string
p1URI
=
pf1
.
backendURI
;
string
p2URI
=
pf2
.
backendURI
;
string
p3URI
=
pf3
.
backendURI
;
...
...
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