Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Types | Public Member Functions | Public Attributes | Properties | List of all members
EdyCommonTools.Spline Class Reference
Inheritance diagram for EdyCommonTools.Spline:

Classes

class  Point
 

Public Types

enum  ProjectionMode { ProjectionMode.Off, ProjectionMode.XZPlane, ProjectionMode.Colliders }
 
enum  Type { Type.Cardinal, Type.TCB }
 
enum  WrapMode { WrapMode.Clamp, WrapMode.Repeat, WrapMode.PingPong }
 

Public Member Functions

void ComputeTangents ()
 
Vector3 GetMedianPointPosition ()
 
Vector3 GetPosition (float s, WrapMode wrapMode=WrapMode.Clamp)
 
Vector3 GetPosition (float s, out Vector3 tangent, WrapMode wrapMode=WrapMode.Clamp)
 
Vector3 GetPosition (float s, out Vector3 tangent, out Vector3 normal, Vector3 up, WrapMode wrapMode=WrapMode.Clamp)
 
Vector3 GetProjectedPoint (Vector3 pos)
 
Vector3 GetRelativePosition (Point p0, Point p1, float s)
 
Vector3 GetRelativeTangent (Point p0, Point p1, float s)
 
void MoveAllPointsLocally (Vector3 delta)
 

Public Attributes

float a = 0.5f
 
float b = 0.0f
 
float c = 0.0f
 
bool closed = false
 
Color color = GColor.green
 
bool identifiers = true
 
Color pointColor = GColor.blue
 
bool pointDistance = false
 
float pointRadius = 0.05f
 
Point[] points = new Point[0]
 
Color projectionColor = GColor.Alpha(GColor.gray, 0.75f)
 
bool projectionHeight = false
 
float projectionMaxY = 500.0f
 
float projectionMinY = -500.0f
 
ProjectionMode projectionMode = ProjectionMode.XZPlane
 
float projectionY = 0.0f
 
int resolution = 20
 
bool segmentLength = false
 
float t = 0.0f
 
float tangentLength = 0.5f
 
bool tangents = false
 
Type type = Type.Cardinal
 
bool uniform = true
 

Properties

float length [get]
 

Member Enumeration Documentation

Enumerator
Off 
XZPlane 
Colliders 
Enumerator
Cardinal 
TCB 
Enumerator
Clamp 
Repeat 
PingPong 

Member Function Documentation

void EdyCommonTools.Spline.ComputeTangents ( )
inline
Vector3 EdyCommonTools.Spline.GetMedianPointPosition ( )
inline
Vector3 EdyCommonTools.Spline.GetPosition ( float  s,
WrapMode  wrapMode = WrapMode.Clamp 
)
inline
Vector3 EdyCommonTools.Spline.GetPosition ( float  s,
out Vector3  tangent,
WrapMode  wrapMode = WrapMode.Clamp 
)
inline
Vector3 EdyCommonTools.Spline.GetPosition ( float  s,
out Vector3  tangent,
out Vector3  normal,
Vector3  up,
WrapMode  wrapMode = WrapMode.Clamp 
)
inline
Vector3 EdyCommonTools.Spline.GetProjectedPoint ( Vector3  pos)
inline
Vector3 EdyCommonTools.Spline.GetRelativePosition ( Point  p0,
Point  p1,
float  s 
)
inline
Vector3 EdyCommonTools.Spline.GetRelativeTangent ( Point  p0,
Point  p1,
float  s 
)
inline
void EdyCommonTools.Spline.MoveAllPointsLocally ( Vector3  delta)
inline

Member Data Documentation

float EdyCommonTools.Spline.a = 0.5f
float EdyCommonTools.Spline.b = 0.0f
float EdyCommonTools.Spline.c = 0.0f
bool EdyCommonTools.Spline.closed = false
Color EdyCommonTools.Spline.color = GColor.green
bool EdyCommonTools.Spline.identifiers = true
Color EdyCommonTools.Spline.pointColor = GColor.blue
bool EdyCommonTools.Spline.pointDistance = false
float EdyCommonTools.Spline.pointRadius = 0.05f
Point [] EdyCommonTools.Spline.points = new Point[0]
Color EdyCommonTools.Spline.projectionColor = GColor.Alpha(GColor.gray, 0.75f)
bool EdyCommonTools.Spline.projectionHeight = false
float EdyCommonTools.Spline.projectionMaxY = 500.0f
float EdyCommonTools.Spline.projectionMinY = -500.0f
ProjectionMode EdyCommonTools.Spline.projectionMode = ProjectionMode.XZPlane
float EdyCommonTools.Spline.projectionY = 0.0f
int EdyCommonTools.Spline.resolution = 20
bool EdyCommonTools.Spline.segmentLength = false
float EdyCommonTools.Spline.t = 0.0f
float EdyCommonTools.Spline.tangentLength = 0.5f
bool EdyCommonTools.Spline.tangents = false
Type EdyCommonTools.Spline.type = Type.Cardinal
bool EdyCommonTools.Spline.uniform = true

Property Documentation

float EdyCommonTools.Spline.length
get

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