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)

  • Sets transformation translation value.

    Declaration

    Objective-C

    - (void)setTranslation:(nonnull BNBVec3 *)position;

    Swift

    func setTranslation(_ position: BNBVec3)

    Parameters

    position

    (vec3): translation value.

  • Declaration

    Objective-C

    - (nonnull BNBVec3 *)getTranslation;

    Swift

    func getTranslation() -> BNBVec3

    Return Value

    translation value (vec3).

  • Sets transformation rotations angles. Angles must be in radians. Order of rotations is XYZ.

    Declaration

    Objective-C

    - (void)setRotation:(nonnull BNBVec3 *)angles;

    Swift

    func setRotation(_ angles: BNBVec3)

    Parameters

    angles

    (vec3): rotation value.

  • Declaration

    Objective-C

    - (nonnull BNBVec3 *)getRotation;

    Swift

    func getRotation() -> BNBVec3

    Return Value

    rotation value (vec3).

  • Sets transformation scale value.

    Declaration

    Objective-C

    - (void)setScale:(nonnull BNBVec3 *)factor;

    Swift

    func setScale(_ factor: BNBVec3)

    Parameters

    scale

    (vec3): scale value.

  • Declaration

    Objective-C

    - (nonnull BNBVec3 *)getScale;

    Swift

    func getScale() -> BNBVec3

    Return Value

    scale value (vec3).

  • Declaration

    Objective-C

    - (nullable BNBComponent *)asComponent;

    Swift

    func asComponent() -> BNBComponent?

    Return Value

    upcast to base type