setTransform method

  1. @JSExport()
JSPromise<JSAny?> setTransform(
  1. ThermionEntity entity,
  2. JSArray<JSNumber> transform
)

Implementation

@JSExport()
JSPromise setTransform(ThermionEntity entity, JSArray<JSNumber> transform) {
  return viewer
      .setTransform(
          entity,
          Matrix4.fromList(
              transform.toDart.map((v) => v.toDartDouble).toList()))
      .toJS;
}