EngineKit
|
#import <Axis.h>
Instance Methods | |
(instancetype) | - initWithString: |
![]() | |
(instancetype) | - initUniformWithNumber: |
(instancetype) | - initWithX:Y:Z: |
(instancetype) | - initWithSCNVector: |
(instancetype) | - initWithSCNVector4: |
(instancetype) | - initWithCIVector: |
(instancetype) | - initWithVector: |
(instancetype) | - initWithArray: |
(instancetype) | - initWithObject: |
(BOOL) | - isEqualToVector: |
(SCNVector3) | - toSCNVector |
Class Methods | |
(instancetype) | + x |
(instancetype) | + y |
(instancetype) | + z |
![]() | |
(instancetype) | + origin |
Additional Inherited Members | |
![]() | |
SCNVector3 | vector |
CGFloat | x |
The Vector's x component. | |
CGFloat | y |
The Vector's y component. | |
CGFloat | z |
The Vector's z component. | |
![]() | |
CGFloat | x |
CGFloat | y |
CGFloat | z |
A representation of an axis (which is treated as an infinite vector and isn't necessarily x, y or z). Used mainly for Rotations.
- (instancetype) initWithString: | (NSString *) | string |
Attempts to initialize an Axis by scanning the string for numbers. If at least three numbers are found, the first three are used. Otherwise, scans the string for the characters x, y or z, and returns the corresponding axis.
assert(false)
is triggered. string | The NSString in which to search for the information. |