RotationObject

Objective-C


@interface RotationObject : NSObject

Swift

class RotationObject : NSObject

This class encapsulates rotation information.

  • New position object.

    Declaration

    Objective-C

    + (nullable RotationObject *)createRotation:(NSInteger)timestamp
                                              x:(double)x
                                              y:(double)y
                                              z:(double)z;

    Swift

    class func createRotation(_ timestamp: Int, x: Double, y: Double, z: Double) -> RotationObject?

    Parameters

    timestamp

    The acquisition timestamp.

    x

    The rotation rate around the x axis of the device, rad/s.

    y

    The rotation rate around the y axis of the device, rad/s.

    z

    The rotation rate around the z axis of the device, rad/s.

  • Initializes and returns a newly allocated object using the model data.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithModelData:(nonnull void *)data;
  • Returns the model data.

    Declaration

    Objective-C

    - (nonnull void *)getModelData;
  • Initializes and returns a newly allocated object using the data object.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDataObject:(nonnull DataObject *)data;

    Swift

    init(dataObject data: DataObject)
  • Returns the model data object.

    Declaration

    Objective-C

    - (nullable DataObject *)getDataObject;

    Swift

    func getDataObject() -> DataObject?
  • Returns the rotation rate around the x axis of the device, rad/s.

    Declaration

    Objective-C

    - (double)getX;

    Swift

    func getX() -> Double
  • Returns the rotation rate around the y axis of the device, rad/s.

    Declaration

    Objective-C

    - (double)getY;

    Swift

    func getY() -> Double
  • Returns the rotation rate around the z axis of the device, rad/s.

    Declaration

    Objective-C

    - (double)getZ;

    Swift

    func getZ() -> Double