normalsToVertices static method

  1. @internal
List<Vector2> normalsToVertices(
  1. List<Vector2> normals,
  2. Vector2 size
)

Implementation

@internal
static List<Vector2> normalsToVertices(
  List<Vector2> normals,
  Vector2 size,
) {
  final halfSize = size / 2;
  return normals
      .map(
        (v) => v.clone()
          ..multiply(halfSize)
          ..add(halfSize),
      )
      .toList(growable: false);
}