Operation double
computeFaceDirection (ArrayList visualInfo, HashMap staticObjects), in Class WorldModel
Documentation
* Computes the player's facing direction with respect to the field
* in degrees, 0 is up and 90 is to the right.
* Code was adapted from field.cc from AT-Humbolt 98 team code.
* Uses lines to determine the facing direction, or two flags and
* the law of cosines if no lines are available.
* @param visualInfo an array of what the player can see
* @param staticObjects contains the locations of all the flags
* @return the facing direction of player, in degrees
Protocol | | Qualification | |
Exceptions | | Size | |
Time | | Concurrency | Sequential |
Export Control | PrivateAccess | | |
Preconditions
Postconditions
Semantics
Property Settings
Java
Abstract | False | Static | False |
Final | False | Native | False |
Synchronized | False | | |
Data Modeler
dmItem | False | DMName | |
IsConstraint | False | ConstraintType | |
IsIndex | False | IsTrigger | False |
IsCluster | False | TableSpace | |
FillFactor | 0 | KeyList | |
CheckPredicate | | IsUnique | False |
DeferalMode | | InitialCheckTime | |
TriggerType | | TriggerReferencePart | |
IsInsertEvent | False | IsUpdateEvent | False |
IsDeleteEvent | False | | |