Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
PatchedConics Class Reference

Classes

struct  PatchCastHit
 
class  SolverParameters
 

Public Member Functions

delegate bool CalculatePatchDelegate (Orbit p, Orbit nextPatch, double startEpoch, SolverParameters pars, CelestialBody targetBody)
 
delegate bool CheckEncounterDelegate (Orbit p, Orbit nextPatch, double startEpoch, OrbitDriver sec, CelestialBody targetBody, SolverParameters pars, bool logErrors=true)
 
delegate bool EncountersBodyDelegate (Orbit p, Orbit s, Orbit nextPatch, OrbitDriver sec, double startEpoch, SolverParameters pars)
 
delegate double GetClosestApproachDelegate (Orbit p, Orbit s, double startEpoch, double dT, SolverParameters pars)
 
delegate bool ScreenCastDelegate (Vector3 screenPos, List< PatchRendering > patchRenders, out PatchCastHit hitInfo, float orbitPixelWidth=10f, double maxUT=-1.0, bool clampToPatches=false)
 
delegate bool ScreenCastWorkerDelegate (Vector3 screenPos, PatchRendering pr, out PatchCastHit hitInfo, float orbitPixelWidth=10f, bool clampToPatch=false)
 

Static Public Member Functions

static bool _CalculatePatch (Orbit p, Orbit nextPatch, double startEpoch, SolverParameters pars, CelestialBody targetBody)
 
static bool _CheckEncounter (Orbit p, Orbit nextPatch, double startEpoch, OrbitDriver sec, CelestialBody targetBody, SolverParameters pars, bool logErrors=true)
 
static double _GetClosestApproach (Orbit p, Orbit s, double startEpoch, double dT, SolverParameters pars)
 
static bool _ScreenCast (Vector3 screenPos, List< PatchRendering > patchRenders, out PatchCastHit hitInfo, float orbitPixelWidth=10f, double maxUT=-1.0, bool clampToPatches=false)
 
static bool _ScreenCastWorker (Vector3 screenPos, PatchRendering pr, out PatchCastHit hitInfo, float orbitPixelWidth=10f, bool clampToPatch=false)
 
static double AngleWrap (double a)
 
static bool TAIsWithinPatchBounds (double tA, Orbit patch)
 

Static Public Attributes

static CalculatePatchDelegate CalculatePatch = _CalculatePatch
 
static CheckEncounterDelegate CheckEncounter = _CheckEncounter
 
static EncountersBodyDelegate EncountersBody = _EncountersBody
 
static GetClosestApproachDelegate GetClosestApproach = _GetClosestApproach
 
static ScreenCastDelegate ScreenCast = _ScreenCast
 
static ScreenCastWorkerDelegate ScreenCastWorker = _ScreenCastWorker
 

Member Function Documentation

static bool PatchedConics._CalculatePatch ( Orbit  p,
Orbit  nextPatch,
double  startEpoch,
SolverParameters  pars,
CelestialBody  targetBody 
)
inlinestatic
static bool PatchedConics._CheckEncounter ( Orbit  p,
Orbit  nextPatch,
double  startEpoch,
OrbitDriver  sec,
CelestialBody  targetBody,
SolverParameters  pars,
bool  logErrors = true 
)
inlinestatic
static double PatchedConics._GetClosestApproach ( Orbit  p,
Orbit  s,
double  startEpoch,
double  dT,
SolverParameters  pars 
)
inlinestatic
static bool PatchedConics._ScreenCast ( Vector3  screenPos,
List< PatchRendering patchRenders,
out PatchCastHit  hitInfo,
float  orbitPixelWidth = 10f,
double  maxUT = -1.0,
bool  clampToPatches = false 
)
inlinestatic
static bool PatchedConics._ScreenCastWorker ( Vector3  screenPos,
PatchRendering  pr,
out PatchCastHit  hitInfo,
float  orbitPixelWidth = 10f,
bool  clampToPatch = false 
)
inlinestatic

< define orbital plane

< figure out where the mouse intersects the plane

< find the true anomaly for the mouse position

< see if the mouse is within pixel range of the orbit point

static double PatchedConics.AngleWrap ( double  a)
inlinestatic
delegate bool PatchedConics.CalculatePatchDelegate ( Orbit  p,
Orbit  nextPatch,
double  startEpoch,
SolverParameters  pars,
CelestialBody  targetBody 
)
delegate bool PatchedConics.CheckEncounterDelegate ( Orbit  p,
Orbit  nextPatch,
double  startEpoch,
OrbitDriver  sec,
CelestialBody  targetBody,
SolverParameters  pars,
bool  logErrors = true 
)
delegate bool PatchedConics.EncountersBodyDelegate ( Orbit  p,
Orbit  s,
Orbit  nextPatch,
OrbitDriver  sec,
double  startEpoch,
SolverParameters  pars 
)
delegate double PatchedConics.GetClosestApproachDelegate ( Orbit  p,
Orbit  s,
double  startEpoch,
double  dT,
SolverParameters  pars 
)
delegate bool PatchedConics.ScreenCastDelegate ( Vector3  screenPos,
List< PatchRendering patchRenders,
out PatchCastHit  hitInfo,
float  orbitPixelWidth = 10f,
double  maxUT = -1.0,
bool  clampToPatches = false 
)
delegate bool PatchedConics.ScreenCastWorkerDelegate ( Vector3  screenPos,
PatchRendering  pr,
out PatchCastHit  hitInfo,
float  orbitPixelWidth = 10f,
bool  clampToPatch = false 
)
static bool PatchedConics.TAIsWithinPatchBounds ( double  tA,
Orbit  patch 
)
inlinestatic

Member Data Documentation

CalculatePatchDelegate PatchedConics.CalculatePatch = _CalculatePatch
static
CheckEncounterDelegate PatchedConics.CheckEncounter = _CheckEncounter
static
EncountersBodyDelegate PatchedConics.EncountersBody = _EncountersBody
static
GetClosestApproachDelegate PatchedConics.GetClosestApproach = _GetClosestApproach
static
ScreenCastDelegate PatchedConics.ScreenCast = _ScreenCast
static
ScreenCastWorkerDelegate PatchedConics.ScreenCastWorker = _ScreenCastWorker
static

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