|
- import Foundation
-
- // Memory.
-
- struct PositionInstance: Position {
- var x: Float
- var y: Float
- }
-
- func memoryCreatePosition(_ x: Float, _ y: Float) -> PositionInstance {
- return .init(x: x, y: y)
- }
-
-
- // UTS.
-
- func utsFloor(_ value: Float) -> Float {
- floor(value)
- }
-
- func utsIndexArray(_ count: Float) -> [Int] {
- [Int](0..<Int(count))
- }
|