Class TransformFrame
- Namespace
- KSP.Sim.impl
- Assembly
- Assembly-CSharp.dll
public abstract class TransformFrame : ITransformFrameInternal, ITransformFrame, ICoordinateSystem
- Inheritance
-
TransformFrame
- Implements
-
- Derived
-
- Inherited Members
-
- Extension Methods
-
Constructors
public TransformFrame(ITransformModelInternal transform)
Parameters
transform ITransformModelInternal
Fields
protected bool _isLocalMatrixDirty
Field Value
- bool
protected Matrix4x4D _localMatrix
Field Value
- Matrix4x4D
protected Matrix4x4D _localMatrixInverse
Field Value
- Matrix4x4D
Properties
public bool IsLocalMatrixDirty { get; }
Property Value
- bool
public ITransformModelInternal _transformInternal { get; }
Property Value
- ITransformModelInternal
public Vector back { get; }
Property Value
- Vector
public Vector down { get; }
Property Value
- Vector
public Vector forward { get; }
Property Value
- Vector
public Vector left { get; }
Property Value
- Vector
public ref Matrix4x4D localMatrix { get; }
Property Value
- Matrix4x4D
public ref Matrix4x4D localMatrixInverse { get; }
Property Value
- Matrix4x4D
public abstract QuaternionD localRotation { get; }
Property Value
- QuaternionD
public IMotionFrame motionFrame { get; }
Property Value
- IMotionFrame
public Vector right { get; }
Property Value
- Vector
public ITransformModel transform { get; }
Property Value
- ITransformModel
public abstract TransformFrameType type { get; }
Property Value
- TransformFrameType
public Vector up { get; }
Property Value
- Vector
Methods
public void AddChild(ITransformModel youngChild)
Parameters
youngChild ITransformModel
public void AttachMotionFrame(IMotionFrame motionFrame)
Parameters
motionFrame IMotionFrame
public ITransformFrameInternal FindCommonParent(ITransformFrameInternal otherFrameInternal)
Parameters
otherFrameInternal ITransformFrameInternal
Returns
- ITransformFrameInternal
public static ITransformFrame GetNonInternalCoordinateSystem(ICoordinateSystem coordinateSystem)
Parameters
coordinateSystem ICoordinateSystem
Returns
- ITransformFrame
public void RemoveChild(ITransformModel oldChild)
Parameters
oldChild ITransformModel
public void SetLocalMatrixDirty()
public Vector3d ToLocalPosition(ICoordinateSystem coordinateSystem, Vector3d coordinateSystemPosition)
Parameters
coordinateSystem ICoordinateSystem
coordinateSystemPosition Vector3d
Returns
- Vector3d
public Vector3d ToLocalPosition(Position position)
Parameters
position Position
Returns
- Vector3d
public QuaternionD ToLocalRotation(ICoordinateSystem coordinateSystem, QuaternionD coordinateSystemRotation)
Parameters
coordinateSystem ICoordinateSystem
coordinateSystemRotation QuaternionD
Returns
- QuaternionD
public QuaternionD ToLocalRotation(Rotation rotation)
Parameters
rotation Rotation
Returns
- QuaternionD
public Matrix4x4D ToLocalTransformationMatrix(ICoordinateSystem coordinateSystem)
Parameters
coordinateSystem ICoordinateSystem
Returns
- Matrix4x4D
public Vector3d ToLocalVector(ICoordinateSystem coordinateSystem, Vector3d coordinateSystemVector)
Parameters
coordinateSystem ICoordinateSystem
coordinateSystemVector Vector3d
Returns
- Vector3d
public Vector3d ToLocalVector(Vector vector)
Parameters
vector Vector
Returns
- Vector3d