Pose constructor

Pose(
  1. int nodeCount
)

A pose of nodeCount nodes, all at the origin, unrotated, unscaled.

Implementation

Pose(this.nodeCount)
  : translations = Float32List(nodeCount * 3),
    rotations = Float32List(nodeCount * 4),
    scales = Float32List(nodeCount * 3) {
  for (var n = 0; n < nodeCount; n++) {
    rotations[n * 4 + 3] = 1;
    scales[n * 3] = 1;
    scales[n * 3 + 1] = 1;
    scales[n * 3 + 2] = 1;
  }
}