API

Class FlowGraphMathSlerpBlock

Spherical linear interpolation between two unit quaternions, matching the quaternion slerp operation. The two inputs are treated as Babylon Quaternion values regardless of their concrete class (the spec defines them as float4), and the output is a Quaternion.

The underlying implementation is Quaternion.Slerp, whose algorithm matches the spec step-for-step (dot product, conditional sign-flip on b, sin-based weighting, and a near-identity short-circuit to a linear blend).

Hierarchy

Index

First input of this block

Second input of this block

Third input of this block

the configuration of the block

dataInputs: FlowGraphDataConnection<any>[]

The data inputs of the block.

dataOutputs: FlowGraphDataConnection<any>[]

The data outputs of the block.

isValid: FlowGraphDataConnection<boolean>

Output connection: Whether the value is valid.

metadata: any

Metadata that can be used by the block.

name: string

The name of the block.

uniqueId: string = ...

A randomly generated GUID for each block.

The output of the operation

  • Serializes this block

    Parameters

    • serializationObject: any = {}

      the object to serialize to

    • _valueSerializeFunction: (key: string, value: any, serializationObject: any) => any = defaultValueSerializationFunction

      a function that serializes a specific value

    Returns void