API

Class FlowGraphQuaternionFromAnglesBlock

Creates a rotation quaternion from three Tait–Bryan intrinsic Euler angles applied in a configurable order.

Inputs a, b, c are the rotations (in radians) around the X, Y and Z axes respectively. The order configuration selects the intrinsic rotation order; NaN and infinite inputs propagate into the resulting quaternion components.

Hierarchy

  • FlowGraphTernaryOperationBlock<number, number, number, WebXRSpatialLayerType>
    • FlowGraphQuaternionFromAnglesBlock
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.

value: FlowGraphDataConnection<Quaternion>

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