source: orbit/iOS/Orbit/CoreMotion.framework/Headers/CMAccelerometer.h @ 876e42b

Servo
Last change on this file since 876e42b was 876e42b, checked in by Steve Castellotti <sc@…>, 7 years ago
  • Property mode set to 100644
File size: 863 bytes
Line 
1/*
2 *  CMAccelerometer.h
3 *  CoreMotion
4 *
5 *  Copyright (c) 2010 Apple Inc. All rights reserved.
6 *
7 */
8
9#import <Foundation/Foundation.h>
10#import <CoreMotion/CMLogItem.h>
11
12/*
13 *  CMAcceleration
14 * 
15 *  Discussion:
16 *    A structure containing 3-axis acceleration data.
17 *
18 *  Fields:
19 *    x:
20 *      X-axis acceleration in G's.
21 *    y:
22 *      Y-axis acceleration in G's.
23 *              z:
24 *                      Z-axis acceleration in G's.
25 */
26typedef struct {
27        double x;
28        double y;
29        double z;
30} CMAcceleration;
31
32/*
33 *  CMAccelerometerData
34 * 
35 *  Discussion:
36 *    Contains a single accelerometer measurement.
37 *
38 */
39NS_CLASS_AVAILABLE(NA,4_0)
40@interface CMAccelerometerData : CMLogItem
41{
42@private
43        id _internal;
44}
45
46/*
47 *  acceleration
48 * 
49 *  Discussion:
50 *    The acceleration measured by the accelerometer.
51 *
52 */
53@property(readonly, nonatomic) CMAcceleration acceleration;
54
55@end
Note: See TracBrowser for help on using the repository browser.