drawModel

fun Canvas.drawModel(model: Model, x: Int, y: Int, z: Int, scale: Float = 1.0f, tint: Color = Color.WHITE)

Draws a 3D model on the canvas.

Parameters

model

The model to draw.

x

The X coordinate of the model position.

y

The Y Coordinate of the model position.

z

The Z coordinate of the model position.

scale

The scale of the model.

tint

The tint color to apply to the model.


fun Canvas.drawModel(model: Model, position: ERROR CLASS: Symbol not found for Triple<kotlin/Int, kotlin/Int, kotlin/Int>, scale: Float = 1.0f, tint: Color = Color.WHITE)

Draws a 3D model on the canvas.

Parameters

model

The model to draw.

position

The position of the model as a Triple of X, Y, Z coordinates.

scale

The scale of the model.

tint

The tint color to apply to the model.


fun Canvas.drawModel(model: Model, x: Int, y: Int, z: Int, rotX: Float, rotY: Float, rotZ: Float, rotAngle: Float, scaleX: Float = 1.0f, scaleY: Float = 1.0f, scaleZ: Float = 1.0f, tint: Color = Color.WHITE)

Draws a 3D model on the canvas with extended parameters.

Parameters

model

The model to draw.

x

The X coordinate of the model position.

y

The Y coordinate of the model position.

z

The Z coordinate of the model position.

rotX

The X axis position where to rotate

rotY

The Y axis position where to rotate

rotZ

The Z axis position where to rotate

rotAngle

The rotational angle along the specified axis in degrees

scaleX

The scale of the model along the X axis.

scaleY

The scale of the model along the Y axis.

scaleZ

The scale of the model along the Z axis.

tint

The tint color to apply to the model.


fun Canvas.drawModel(model: Model, x: Int, y: Int, z: Int, rotX: Float, rotY: Float, rotZ: Float, rotAngle: Float, scale: Float = 1.0f, tint: Color = Color.WHITE)

Draws a 3D model on the canvas with extended parameters.

Parameters

model

The model to draw.

x

The X coordinate of the model position.

y

The Y coordinate of the model position.

z

The Z coordinate of the model position.

rotX

The X axis position where to rotate

rotY

The Y axis position where to rotate

rotZ

The Z axis position where to rotate

rotAngle

The rotational angle along the specified axis in degrees

scale

The scale of the model.

tint

The tint color to apply to the model.


fun Canvas.drawModel(model: Model, position: ERROR CLASS: Symbol not found for Triple<kotlin/Int, kotlin/Int, kotlin/Int>, rotation: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>, rotAngle: Float, scaleX: Float = 1.0f, scaleY: Float = 1.0f, scaleZ: Float = 1.0f, tint: Color = Color.WHITE)

Draws a 3D model on the canvas with extended parameters.

Parameters

model

The model to draw.

position

The position of the model as a Triple of X, Y, Z coordinates.

rotation

The rotation of the model as a Triple of X, Y, Z axis positions.

rotAngle

The rotational angle along the specified axis in degrees

scaleX

The scale of the model along the X axis.

scaleY

The scale of the model along the Y axis.

scaleZ

The scale of the model along the Z axis.

tint

The tint color to apply to the model.


fun Canvas.drawModel(model: Model, position: ERROR CLASS: Symbol not found for Triple<kotlin/Int, kotlin/Int, kotlin/Int>, rotation: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>, rotAngle: Float, scale: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float> = (1F to 1F to 1F), tint: Color = Color.WHITE)

Draws a 3D model on the canvas with extended parameters.

Parameters

model

The model to draw.

position

The position of the model as a Triple of X, Y, Z coordinates.

rotation

The rotation of the model as a Triple of X, Y, Z axis positions.

rotAngle

The rotational angle along the specified axis in degrees

scale

The scale of the model as a Triple of X, Y, Z scales.

tint

The tint color to apply to the model.