Banuba SDK
Instance Methods | Class Methods | List of all members
BNBTransformation3d Class Reference

#import <BNBTransformation3d.h>

Inheritance diagram for BNBTransformation3d:

Instance Methods

(void) - setTranslation:
 Sets transformation translation value. More...
 
(nonnull BNBVec3 *) - getTranslation
 
(void) - setRotation:
 Sets transformation rotations angles. More...
 
(nonnull BNBVec3 *) - getRotation
 
(void) - setScale:
 Sets transformation scale value. More...
 
(nonnull BNBVec3 *) - getScale
 
(nullable BNBComponent *) - asComponent
 

Class Methods

(nullable BNBTransformation3d *) + create
 Fabric method for transformation creating. More...
 

Detailed Description

Definition at line 16 of file BNBTransformation3d.h.

Method Documentation

◆ asComponent

- (nullable BNBComponent *) asComponent
Returns
upcast to base type

◆ create

+ (nullable BNBTransformation3d *) create

Fabric method for transformation creating.

Returns
transformation component (transformation)

◆ getRotation

- (nonnull BNBVec3 *) getRotation
Returns
rotation value (vec3).

◆ getScale

- (nonnull BNBVec3 *) getScale
Returns
scale value (vec3).

◆ getTranslation

- (nonnull BNBVec3 *) getTranslation
Returns
translation value (vec3).

◆ setRotation:

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

Sets transformation rotations angles.

Angles must be in radians. Order of rotations is XYZ.

Parameters
angles(vec3): rotation value.

◆ setScale:

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

Sets transformation scale value.

Parameters
scale(vec3): scale value.

◆ setTranslation:

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

Sets transformation translation value.

Parameters
position(vec3): translation value.

The documentation for this class was generated from the following file: