Open Sim Global Calculations BRIGADOON-0011
Provide a php class that provides a series of calculations using global coordinates
Loading...
Searching...
No Matches
os_global_calcs.php File Reference

Calculate positions using global measurements to allow measurements across Regional boundries. More...

Go to the source code of this file.

Classes

class  OS_GLOBAL_CALCS
 A Class to do global to local conversion and some global calculations. More...

Variables

 $global_calcs = new OS_GLOBAL_CALCS($db, $host, $db_username, $db_password)
 $from_array = ['region_name'=>'BRIGADOON13', 'local_x' => 128, 'local_y' => 256, 'local_z' => 128]
 $to_array = ['region_name'=>'BRIGADOON13', 'local_x' => 256, 'local_y' => 128, 'local_z' => 256]
 $course = []
 $global = []
 $course ['bearing'] = M_PI

Detailed Description

Calculate positions using global measurements to allow measurements across Regional boundries.

Author
River Drifter river.nosp@m.-dri.nosp@m.fter@.nosp@m.auss.nosp@m.iebro.nosp@m.adba.nosp@m.nd.co.nosp@m.m.au
Version
1.0.0
Date
06-January-2026

The file creates a php class that can be used to do calculations using global coordinates for any two points in a simulation. The input and or output can be a global position vector, or it can be a region name with local coordinates.

Author
River Drifter river.nosp@m.-dri.nosp@m.fter@.nosp@m.auss.nosp@m.iebro.nosp@m.adba.nosp@m.nd.co.nosp@m.m.au
Version
1.0.0
Date
10-January-2026

The file creates a php class that can be used to do calculations using global coordinates for any two points in a simulation. The input and or output can be a global position vector, or it can be a region name with local coordinates.

Definition in file os_global_calcs.php.

Variable Documentation

◆ $course [1/2]

$course = []

Definition at line 296 of file os_global_calcs.php.

◆ $course [2/2]

$course[ 'bearing'] = M_PI

Definition at line 312 of file os_global_calcs.php.

◆ $from_array

$course* ['elevation'] $from_array = ['region_name'=>'BRIGADOON13', 'local_x' => 128, 'local_y' => 256, 'local_z' => 128]

Definition at line 294 of file os_global_calcs.php.

◆ $global

$global = []

Definition at line 297 of file os_global_calcs.php.

◆ $global_calcs

$global_calcs = new OS_GLOBAL_CALCS($db, $host, $db_username, $db_password)

Definition at line 290 of file os_global_calcs.php.

◆ $to_array

$to_array = ['region_name'=>'BRIGADOON13', 'local_x' => 256, 'local_y' => 128, 'local_z' => 256]

Definition at line 295 of file os_global_calcs.php.