doWarmUp method
Implementation
@protected
@override
void doWarmUp() {
_step = 1 / (points.length - 1);
_preListFloat32x4 = Float32x4List(points.length);
for (num i = 0, x = 0; i < points.length; x += _step, i++) {
var index = i.toDouble();
var t = x.toDouble();
var vector = SphericalUtil.latLngtoVector3(points[index.toInt()]);
_preListFloat32x4[index.toInt()] =
Float32x4(vector.x, vector.y, vector.z, t);
//x => vector x | y => vector y | z => vector z | w => (t) position
}
_lastFloat32x4 = _preListFloat32x4.last;
var first = _preListFloat32x4.first;
var last = _preListFloat32x4.last;
begin = SphericalUtil.vectorToPolarOptimized(first) as T;
end = SphericalUtil.vectorToPolarOptimized(last) as T;
}