Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
PlayerEntityScriptMethods.m File Reference
+ Include dependency graph for PlayerEntityScriptMethods.m:

Go to the source code of this file.

Functions

Vector OOGalacticCoordinatesFromInternal (NSPoint internalCoordinates)
 
NSPoint OOInternalCoordinatesFromGalactic (Vector galacticCoordinates)
 

Function Documentation

◆ OOGalacticCoordinatesFromInternal()

Vector OOGalacticCoordinatesFromInternal ( NSPoint internalCoordinates)

Definition at line 617 of file PlayerEntityScriptMethods.m.

618{
619 return (Vector){ (float)internalCoordinates.x * 0.4f, (float)internalCoordinates.y * 0.2f, 0.0f };
620}

Referenced by PlayerShipGetProperty(), and SystemInfoGetProperty().

+ Here is the caller graph for this function:

◆ OOInternalCoordinatesFromGalactic()

NSPoint OOInternalCoordinatesFromGalactic ( Vector galacticCoordinates)

Definition at line 623 of file PlayerEntityScriptMethods.m.

624{
625 return (NSPoint){ (float)galacticCoordinates.x * 2.5f, (float)galacticCoordinates.y * 5.0f };
626}

Referenced by MissionRunScreen(), and PlayerShipSetProperty().

+ Here is the caller graph for this function: