Package com.banuba.sdk.scene
Interface Transformation3d
-
- All Known Implementing Classes:
Transformation3d.CppProxy
public interface Transformation3d
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Transformation3d.CppProxy
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Component
asComponent()
static Transformation3d
create()
Fabric method for transformation creating.Vec3
getRotation()
Vec3
getScale()
Vec3
getTranslation()
void
setRotation(Vec3 angles)
Sets transformation rotations angles.void
setScale(Vec3 factor)
Sets transformation scale value.void
setTranslation(Vec3 position)
Sets transformation translation value.
-
-
-
Method Detail
-
setTranslation
void setTranslation(@NonNull Vec3 position)
Sets transformation translation value.- Parameters:
position
- (vec3): translation value.
-
getTranslation
@NonNull Vec3 getTranslation()
- Returns:
- translation value (vec3).
-
setRotation
void setRotation(@NonNull Vec3 angles)
Sets transformation rotations angles. Angles must be in radians. Order of rotations is XYZ.- Parameters:
angles
- (vec3): rotation value.
-
getRotation
@NonNull Vec3 getRotation()
- Returns:
- rotation value (vec3).
-
setScale
void setScale(@NonNull Vec3 factor)
Sets transformation scale value.- Parameters:
scale
- (vec3): scale value.
-
getScale
@NonNull Vec3 getScale()
- Returns:
- scale value (vec3).
-
asComponent
@Nullable Component asComponent()
- Returns:
- upcast to base type
-
create
@Nullable static Transformation3d create()
Fabric method for transformation creating.- Returns:
- transformation component (transformation)
-
-