Class LambdaTransformation

A Frame of Reference transformation that uses the user-defined lambda function.

Implements

Constructors

Properties

Methods

Constructors

  • Create a new LambdaTransformer with the provided lambda function.

    • Lambda function should take in the current state and the time step and return the transformed state.
    • The time step is only applicable for time-dependent transformations.
    • Transformed state should contain the same number of bodies as the input state, and the order should be preserved.

    Parameters

    • fn: ((state, deltaT) => State)

      lambda function.

    Returns LambdaTransformation

Properties

fn: ((state, deltaT) => State)

Type declaration

Methods

  • Transform the state's frame of reference using the lambda function.

    Parameters

    • state: State

      state to transform.

    • deltaT: number

      time step taken to get to this state. Only applicable for time-dependent transformations.

    Returns State

    transformed state.

Generated using TypeDoc