ISPosition Class Reference
Inherits from | NSObject |
---|---|
Declared in | ISPosition.h |
coordinates
Position coordinates (in meters).
@property (nonatomic, readwrite) CGPoint coordinates
Declared In
ISPosition.h
– initWithX:andY:andMapId:
Main constructor.
- (instancetype)initWithX:(double)x andY:(double)y andMapId:(int)mapId
Parameters
x |
X double coordinate. |
---|---|
y |
Y double coordinate. |
mapId |
Map identifier to use. |
Declared In
ISPosition.h
– initWithISPosition:
Constructor.
- (instancetype)initWithISPosition:(ISPosition *)position
Parameters
position |
ISPosition to use for instantiate the new one. |
---|
Declared In
ISPosition.h
+ ISPositionWithX:andY:andMapId:
Static main constructor.
+ (instancetype)ISPositionWithX:(double)x andY:(double)y andMapId:(int)mapId
Parameters
x |
X double coordinate. |
---|---|
y |
Y double coordinate. |
mapId |
Map identifier to use. |
Declared In
ISPosition.h
– setValuesWithPosition:
copy values from position, without new allocation.
- (void)setValuesWithPosition:(ISPosition *)position
Parameters
position |
ISPosition to use for update current values. |
---|
Declared In
ISPosition.h
– offsetWithOffset:
Method used to offset the ISPosition.
- (void)offsetWithOffset:(CGPoint)offset
Parameters
offset |
CGPoint use to offset the position on X/Y axis. |
---|
Declared In
ISPosition.h