setAngle method

  1. @override
bool setAngle(
  1. double angle
)
override

Sets rotation angle in degrees (around the placement axis used by the engine). Returns true if the operation is successful, false otherwise.

Example:

bool angleOk = m.setAngle(45.0);
print("Model setAngle: $angleOk");

Implementation

@override
bool setAngle(double angle) {
    final _setAngleFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Uint8 Function(Pointer<Void>, Float),
        int Function(Pointer<Void>, double)
      >('navigine_sdk_flutter_ModelMapObject_setAngle__Angle'));
    final __resultHandle = _setAngleFfi(this.ptr, angle);
    final _result = (__resultHandle != 0);
    exception.checkCallResult();
    return _result;
}