We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ed5fd6 commit 3671749Copy full SHA for 3671749
1 file changed
lib/src/vector.dart
@@ -2,7 +2,7 @@ part of chronos_gl;
2
3
class Vector {
4
5
- Float32List array = new Float32List(3);
+ Float32List array;
6
7
double get x => array[0];
8
double get y => array[1];
@@ -16,13 +16,15 @@ class Vector {
16
Vector.useList( this.array);
17
18
Vector.fromList( Float32List array) {
19
+ this.array = new Float32List(3);
20
this.array[0] = array[0];
21
this.array[1] = array[1];
22
this.array[2] = array[2];
23
}
24
25
Vector( [double x=0.0, double y=0.0, double z=0.0])
26
{
27
+ array = new Float32List(3);
28
array[0] = x;
29
array[1] = y;
30
array[2] = z;
0 commit comments