File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed
src/main/kotlin/glm_/vec1 Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1
1
package glm_.vec1
2
2
3
+ import glm_.BYTES
3
4
import glm_.f
4
5
import glm_.getFloat
5
6
import glm_.set
@@ -116,4 +117,11 @@ class Vec1(x: Float) : Vec1t<Float>(x) {
116
117
0 -> x = s.f
117
118
else -> throw ArrayIndexOutOfBoundsException ()
118
119
}
120
+
121
+ companion object {// TODO : vec2b_operators {
122
+ @JvmField
123
+ val length = 1
124
+ @JvmField
125
+ val size = length * Float .BYTES
126
+ }
119
127
}
Original file line number Diff line number Diff line change @@ -78,4 +78,11 @@ class Vec1b(x: Byte) : Vec1t<Byte>(x) {
78
78
0 -> x = s.b
79
79
else -> throw ArrayIndexOutOfBoundsException ()
80
80
}
81
+
82
+ companion object {// TODO : vec2b_operators {
83
+ @JvmField
84
+ val length = 1
85
+ @JvmField
86
+ val size = length * Byte .BYTES
87
+ }
81
88
}
Original file line number Diff line number Diff line change 1
1
package glm_.vec1
2
2
3
+ import glm_.BYTES
3
4
import glm_.getInt
4
5
import glm_.i
5
6
import glm_.vec2.Vec2bool
@@ -98,4 +99,11 @@ class Vec1i(x: Int) : Vec1t<Int>(x) {
98
99
0 -> x = s.i
99
100
else -> throw ArrayIndexOutOfBoundsException ()
100
101
}
102
+
103
+ companion object {// TODO : vec2b_operators {
104
+ @JvmField
105
+ val length = 1
106
+ @JvmField
107
+ val size = length * Int .BYTES
108
+ }
101
109
}
You can’t perform that action at this time.
0 commit comments