From cf0a6c77832d86ceeb896e686701f01227c339a5 Mon Sep 17 00:00:00 2001 From: Abe Pazos Date: Sat, 30 Aug 2025 14:05:06 +0200 Subject: [PATCH] [orx-shapes] Add @OptIn to mute warnings --- orx-shapes/src/commonMain/kotlin/ordering/Morton3d.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/orx-shapes/src/commonMain/kotlin/ordering/Morton3d.kt b/orx-shapes/src/commonMain/kotlin/ordering/Morton3d.kt index d601c78a..0a0dcde5 100644 --- a/orx-shapes/src/commonMain/kotlin/ordering/Morton3d.kt +++ b/orx-shapes/src/commonMain/kotlin/ordering/Morton3d.kt @@ -32,6 +32,7 @@ fun morton3dEncode5Bit( return ((index1 shr 16) or (index2 shr 15) or (index3 shr 14)); } +@OptIn(ExperimentalUnsignedTypes::class) fun morton3dDecode5Bit(morton: UInt): UIntArray { // unpack 3 5-bit indices from a 15-bit Morton code var value1 = morton; var value2 = (value1 shr 1); @@ -61,6 +62,7 @@ fun morton3dDecode5Bit(morton: UInt): UIntArray { // unpack 3 5-bit indices from } +@OptIn(ExperimentalUnsignedTypes::class) fun morton3dEncode10Bit( index1: UInt, index2: UInt,