setScaling

actual fun setScaling(x: Double, y: Double)

Apply a 2D scaling to the projection matrix after projection.

Useful for adjusting aspect ratio independent of projection. Example: for Fov.HORIZONTAL with aspect w/h:

setProjection(fov, 1.0, near, far, Fov.HORIZONTAL)
setScaling(1.0, aspect)

Default: identity (1.0, 1.0).

Parameters

x

Horizontal scale factor

y

Vertical scale factor

expect fun setScaling(x: Double, y: Double)

Apply a 2D scaling to the projection matrix after projection.

Useful for adjusting aspect ratio independent of projection. Example: for Fov.HORIZONTAL with aspect w/h:

setProjection(fov, 1.0, near, far, Fov.HORIZONTAL)
setScaling(1.0, aspect)

Default: identity (1.0, 1.0).

Parameters

x

Horizontal scale factor

y

Vertical scale factor

actual fun setScaling(x: Double, y: Double)

Apply a 2D scaling to the projection matrix after projection.

Useful for adjusting aspect ratio independent of projection. Example: for Fov.HORIZONTAL with aspect w/h:

setProjection(fov, 1.0, near, far, Fov.HORIZONTAL)
setScaling(1.0, aspect)

Default: identity (1.0, 1.0).

Parameters

x

Horizontal scale factor

y

Vertical scale factor

actual fun setScaling(x: Double, y: Double)

Apply a 2D scaling to the projection matrix after projection.

Useful for adjusting aspect ratio independent of projection. Example: for Fov.HORIZONTAL with aspect w/h:

setProjection(fov, 1.0, near, far, Fov.HORIZONTAL)
setScaling(1.0, aspect)

Default: identity (1.0, 1.0).

Parameters

x

Horizontal scale factor

y

Vertical scale factor

actual fun setScaling(x: Double, y: Double)

Apply a 2D scaling to the projection matrix after projection.

Useful for adjusting aspect ratio independent of projection. Example: for Fov.HORIZONTAL with aspect w/h:

setProjection(fov, 1.0, near, far, Fov.HORIZONTAL)
setScaling(1.0, aspect)

Default: identity (1.0, 1.0).

Parameters

x

Horizontal scale factor

y

Vertical scale factor