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
type
type
dimension
dimension
axis
axis
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
type
type
dimension
dimension
axes
axes
Return Value
new instance
-
Number of axes
Declaration
Objective-C
- (int)numAxes;
Swift
func numAxes() -> Int32
Return Value
axes count
-
Add the axis
Parameters
axis
axis
-
Has a unit
Declaration
Objective-C
- (BOOL)hasUnit;
Swift
func hasUnit() -> Bool
Return Value
true if has unit
-
Get the axis unit, either the CS unit or first axis with unit
Return Value
unit