Struct Rotation
- Namespace
- KSP.Sim
- Assembly
- Assembly-CSharp.dll
- Inherited Members
-
- Extension Methods
-
Constructors
Rotation(ICoordinateSystem, QuaternionD)
public Rotation(ICoordinateSystem coordinateSystem, QuaternionD localRotation)
Parameters
coordinateSystem ICoordinateSystem
localRotation QuaternionD
Properties
coordinateSystem
public ICoordinateSystem coordinateSystem { readonly get; set; }
Property Value
- ICoordinateSystem
localRotation
public QuaternionD localRotation { readonly get; set; }
Property Value
- QuaternionD
Methods
FlipRotation(Rotation, Vector, double)
public static Rotation FlipRotation(Rotation toFlip, Vector axis, double angleDeg = 180)
Parameters
toFlip Rotation
axis Vector
angleDeg double
Returns
- Rotation
FromTo(Vector, Vector)
public static Rotation FromTo(Vector from, Vector to)
Parameters
from Vector
to Vector
Returns
- Rotation
Lerp(Rotation, Rotation, double)
public static Rotation Lerp(Rotation from, Rotation to, double lerp)
Parameters
from Rotation
to Rotation
lerp double
Returns
- Rotation
LookRotation(Vector, Vector)
public static Rotation LookRotation(Vector forward, Vector upwards)
Parameters
forward Vector
upwards Vector
Returns
- Rotation
Reframe(ICoordinateSystem)
public void Reframe(ICoordinateSystem newCoordinateSystem)
Parameters
newCoordinateSystem ICoordinateSystem
Reframed(Rotation, ICoordinateSystem)
public static Rotation Reframed(Rotation rotation, ICoordinateSystem newReferenceFrame)
Parameters
rotation Rotation
newReferenceFrame ICoordinateSystem
Returns
- Rotation
Slerp(Rotation, Rotation, double)
public static Rotation Slerp(Rotation from, Rotation to, double lerp)
Parameters
from Rotation
to Rotation
lerp double
Returns
- Rotation