Introduction

Installation

Configuring Objects

Spacecalls

Events

Coordinates

Tips & Tricks

Portable Space EngineBuilder's Guide

Please send comments to Mark Cooke <mpc@star.sr.bham.ac.uk> or vspace@geocities.com

>Spacecalls: Utility Calls

SpacecallReturn ValueObjectShip
sph_to_xyz(Float bearing, Float elevation, Integer range)Cartesian coordinates   
This function converts the spherical coordinates given into cartesian coordinates, in the order x, y, z.
xyz_to_sph(Integer x, Integer y, Integer z)Spherical coordinates   
This function converts the cartesian coordinates given to spherical coordinates, in the order Bearing, Elevation, Range. Bearing is between 0 and 360 degrees, and elevation between +90 and -90 degrees.


Last modified: 15th March 1998