Angle comprised of three PointFacts [A,B,C]
More...
|
| AngleFact () |
|
| AngleFact (AngleFact fact, Dictionary< string, string > old_to_new, FactOrganizer organizer) |
| Copies fact by initiating new MMT Fact. More...
|
|
| AngleFact (string pid1, string pid2, string pid3, FactOrganizer organizer) |
| Standard Constructor More...
|
|
| AngleFact (string Pid1, string Pid2, string Pid3, string backendURI, FactOrganizer organizer) |
| Bypasses initialization of new MMT Fact by using existend URI, which is not checked for existence. More...
|
|
override Boolean | hasDependentFacts () |
| - Returns
true if Fact depends on other Facts; equivalent to getDependentFactIds returns non empty array
More...
|
|
override string[] | getDependentFactIds () |
|
override GameObject | instantiateDisplay (GameObject prefab, Transform transform) |
| Initiates a prefab at transform e.g. by setting Label. More...
|
|
override int | GetHashCode () |
| canonical More...
|
|
override bool | Equivalent (Fact f2) |
| Compares this against f2 . More...
|
|
override bool | Equivalent (Fact f1, Fact f2) |
| Compares f1 against f2 . More...
|
|
|
void | init (string pid1, string pid2, string pid3) |
| Initiates Pid1, Pid2, Pid3, is_right_angle, Fact._URI and creates MMT Fact Server-Side More...
|
|
float | GetAngle () |
| Computes smallest angle and sets is_right_angle More...
|
|
MMTDeclaration | generate90DegreeAngleDeclaration (float val, string p1URI, string p2URI, string p3URI) |
| Constructs struct for right-angled MMT Fact AddFactResponse More...
|
|
MMTDeclaration | generateNot90DegreeAngleDeclaration (float val, string p1URI, string p2URI, string p3URI) |
| Constructs struct for not-right-angled MMT Fact AddFactResponse More...
|
|
Angle comprised of three PointFacts [A,B,C]
◆ AngleFact() [1/4]
◆ AngleFact() [2/4]
Copies fact by initiating new MMT Fact.
- Parameters
-
◆ AngleFact() [3/4]
AngleFact.AngleFact |
( |
string |
pid1, |
|
|
string |
pid2, |
|
|
string |
pid3, |
|
|
FactOrganizer |
organizer |
|
) |
| |
Standard Constructor
- Parameters
-
◆ AngleFact() [4/4]
AngleFact.AngleFact |
( |
string |
Pid1, |
|
|
string |
Pid2, |
|
|
string |
Pid3, |
|
|
string |
backendURI, |
|
|
FactOrganizer |
organizer |
|
) |
| |
Bypasses initialization of new MMT Fact by using existend URI, which is not checked for existence.
- Parameters
-
◆ EquivalentWrapped()
Compares f1 against f2 .
- Parameters
-
f1 | Fact to compare to |
f2 | Fact to compare to |
- Returns
true
if f2 is semantical very similar to f1
◆ generate90DegreeAngleDeclaration()
MMTDeclaration AngleFact.generate90DegreeAngleDeclaration |
( |
float |
val, |
|
|
string |
p1URI, |
|
|
string |
p2URI, |
|
|
string |
p3URI |
|
) |
| |
|
private |
◆ generateLabel()
override string AngleFact.generateLabel |
( |
| ) |
|
|
protected |
auto-generates Label using generation variable(s) e.g. LabelId; if custom Label is set, tries to restore original generated Label without resetting _CustomLabel. If original Label is already taken, a new one will be generated.
- Returns
- auto-generated Label
◆ generateNot90DegreeAngleDeclaration()
MMTDeclaration AngleFact.generateNot90DegreeAngleDeclaration |
( |
float |
val, |
|
|
string |
p1URI, |
|
|
string |
p2URI, |
|
|
string |
p3URI |
|
) |
| |
|
private |
◆ GetAngle()
float AngleFact.GetAngle |
( |
| ) |
|
|
private |
◆ getDependentFactIds()
override string[] AngleFact.getDependentFactIds |
( |
| ) |
|
◆ GetHashCode()
override int AngleFact.GetHashCode |
( |
| ) |
|
canonical
- Returns
- unique-ish Hash
◆ hasDependentFacts()
override Boolean AngleFact.hasDependentFacts |
( |
| ) |
|
◆ init()
void AngleFact.init |
( |
string |
pid1, |
|
|
string |
pid2, |
|
|
string |
pid3 |
|
) |
| |
|
private |
◆ instantiateDisplay()
override GameObject AngleFact.instantiateDisplay |
( |
GameObject |
prefab, |
|
|
Transform |
transform |
|
) |
| |
Initiates a prefab at transform e.g. by setting Label.
Does not set Representation.
- Parameters
-
prefab | GameObject Prefab that will represent this Fact |
transform | Transform where to initiate prefab |
- Returns
◆ parseFact()
◆ is_right_angle
bool AngleFact.is_right_angle |
true
, if AngleFact is approximately 90° or 270°
◆ Pid1
◆ Pid2
◆ Pid3
The documentation for this class was generated from the following file:
- D:/Users/marco/Dokuments/OneDrive/FAU/Informatik/UFrameIT/FrameIT/Windows/MaZiFAU/Assets/Scripts/InteractionEngine/FactHandling/Fact.cs