BNBTransformation3d
Objective-C
@interface BNBTransformation3d : NSObject
/**
*Fabric method for transformation creating.
*@return transformation component (transformation)
*/
+ (nullable BNBTransformation3d *)create;
/**
*Sets transformation translation value.
*@param position (vec3): translation value.
*/
- (void)setTranslation:(nonnull BNBVec3 *)position;
/**@return translation value (vec3). */
- (nonnull BNBVec3 *)getTranslation;
/**
*Sets transformation rotations angles. Angles must be in radians. Order of rotations is XYZ.
*@param angles (vec3): rotation value.
*/
- (void)setRotation:(nonnull BNBVec3 *)angles;
/**@return rotation value (vec3). */
- (nonnull BNBVec3 *)getRotation;
/**
*Sets transformation scale value.
*@param scale (vec3): scale value.
*/
- (void)setScale:(nonnull BNBVec3 *)factor;
/**@return scale value (vec3). */
- (nonnull BNBVec3 *)getScale;
/**@return upcast to base type */
- (nullable BNBComponent *)asComponent;
@end
Swift
class BNBTransformation3d : NSObject
Undocumented
-
Fabric method for transformation creating.
Declaration
Objective-C
+ (nullable BNBTransformation3d *)create;
Swift
class func create() -> BNBTransformation3d?
Return Value
transformation component (transformation)
-
Declaration
Objective-C
- (nullable BNBComponent *)asComponent;
Swift
func asComponent() -> BNBComponent?
Return Value
upcast to base type