KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
ScaledSpace Class Reference

A class that handles the transformations between the scaled-down coordinate system used by the map view and the regular coordinate system used by the main flight view and the physics. More...

Inheritance diagram for ScaledSpace:

Public Member Functions

 ScaledSpace ()
 

Static Public Member Functions

static void AddScaledSpaceTransform (Transform t)
 
static Vector3d LocalToScaledSpace (Vector3d localSpacePoint)
 Convert a position in world coordinates into a position in planetarium coordinates. More...
 
static void RemoveScaledSpaceTransform (Transform t)
 
static Vector3d ScaledToLocalSpace (Vector3d scaledSpacePoint)
 Convert a position in planetarium coordinates into a position in world coordinates. More...
 

Public Attributes

Transform originTarget
 
List< Transform > scaledSpaceTransforms
 
float scaleFactor
 

Properties

static float InverseScaleFactor [get]
 
static float ScaleFactor [get]
 "Scaled space" is the coordinate system used by the planetarium view. It's the same coordinate system as the world coordinates used by the physics, except scaled down by this scale factor. More...
 
static Transform SceneTransform [get]
 

Detailed Description

A class that handles the transformations between the scaled-down coordinate system used by the map view and the regular coordinate system used by the main flight view and the physics.

Constructor & Destructor Documentation

ScaledSpace.ScaledSpace ( )

Member Function Documentation

static void ScaledSpace.AddScaledSpaceTransform ( Transform  t)
static
static Vector3d ScaledSpace.LocalToScaledSpace ( Vector3d  localSpacePoint)
static

Convert a position in world coordinates into a position in planetarium coordinates.

Parameters
localSpacePointA position in world coordinates
Returns
The corresponding position in planetarium coordinates
static void ScaledSpace.RemoveScaledSpaceTransform ( Transform  t)
static
static Vector3d ScaledSpace.ScaledToLocalSpace ( Vector3d  scaledSpacePoint)
static

Convert a position in planetarium coordinates into a position in world coordinates.

Parameters
scaledSpacePointA position in planetarium coordinates.
Returns
The corresponding position in world coordinates.

Member Data Documentation

Transform ScaledSpace.originTarget
List<Transform> ScaledSpace.scaledSpaceTransforms
float ScaledSpace.scaleFactor

Property Documentation

float ScaledSpace.InverseScaleFactor
staticget
float ScaledSpace.ScaleFactor
staticget

"Scaled space" is the coordinate system used by the planetarium view. It's the same coordinate system as the world coordinates used by the physics, except scaled down by this scale factor.

Transform ScaledSpace.SceneTransform
staticget

The documentation for this class was generated from the following file: