Vec3

fun Vec3(@ColorInt color: Int): Vec3<Float>

Deprecated

Use Int.toVec3() instead

Replace with

import graphics.glimpse.types.toVec3
color.toVec3()

Returns a Vec3 representation of a given color.

inline fun <T : Number, Comparable<T>> Vec3(x: T, y: T, z: T): Vec3<T>

Returns a new 3D vector with coordinates (x, y, z).

Since

v2.0.0

fun Vec3(color: Color): Vec3<Float>

Deprecated

Use Color.toVec3() instead

Replace with

import graphics.glimpse.types.toVec3
color.toVec3()

Returns a Vec3 representation of a given color.