All gl-matrix objects (vec3, mat3, mat4, etc) are compiled into Kotlin package, but since they all have a similarly named set of static functions, they are not easily useable from Kotlin. The idiomatic way to import this library into Kotlin would be to generate an external object vec3, etc (or external class vec3).
All gl-matrix objects (
vec3
,mat3
,mat4
, etc) are compiled into Kotlin package, but since they all have a similarly named set of static functions, they are not easily useable from Kotlin. The idiomatic way to import this library into Kotlin would be to generate anexternal object vec3
, etc (orexternal class vec3
).