CRSCoordinateSystem
Objective-C
@interface CRSCoordinateSystem : NSObject <CRSIdentifiable>
Swift
class CRSCoordinateSystem : NSObject, CRSIdentifiable
Coordinate System
-
Type
Declaration
Objective-C
@property (nonatomic) enum CRSCoordinateSystemType type;Swift
var type: CRSCoordinateSystemType { get set } -
Dimension
Declaration
Objective-C
@property (nonatomic) int dimension;Swift
var dimension: Int32 { get set } -
Identifiers
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray<CRSIdentifier *> *identifiers;Swift
var identifiers: NSMutableArray! { get set } -
Axes
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray<CRSAxis *> *axes;Swift
var axes: NSMutableArray! { get set } -
Create
Declaration
Objective-C
+ (CRSCoordinateSystem *)create;Swift
class func create() -> CRSCoordinateSystem!Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)init;Swift
init!()Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)initWithType:(enum CRSCoordinateSystemType)type andDimension:(int)dimension andAxis:(CRSAxis *)axis;Swift
init!(type: CRSCoordinateSystemType, andDimension dimension: Int32, andAxis axis: CRSAxis!)Parameters
typetype
dimensiondimension
axisaxis
Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)initWithType:(enum CRSCoordinateSystemType)type andDimension:(int)dimension andAxes:(NSArray<CRSAxis *> *)axes;Swift
init!(type: CRSCoordinateSystemType, andDimension dimension: Int32, andAxes axes: [CRSAxis]!)Parameters
typetype
dimensiondimension
axesaxes
Return Value
new instance
-
Number of axes
Declaration
Objective-C
- (int)numAxes;Swift
func numAxes() -> Int32Return Value
axes count
-
Add the axis
Parameters
axisaxis
-
Has a unit
Declaration
Objective-C
- (BOOL)hasUnit;Swift
func hasUnit() -> BoolReturn Value
true if has unit
-
Get the axis unit, either the CS unit or first axis with unit
Return Value
unit
View on GitHub
CRSCoordinateSystem Class Reference