• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

google / vector_math.dart / 17181727464

04 Aug 2025 07:19PM UTC coverage: 26.702% (+0.3%) from 26.388%
17181727464

push

github

web-flow
Bump min SDK to 3.7, update dependencies, reformat (#348)

496 of 1182 new or added lines in 55 files covered. (41.96%)

18 existing lines in 8 files now uncovered.

4463 of 16714 relevant lines covered (26.7%)

1.18 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/lib/src/vector_math_geometry/filters/transform_filter.dart
1
// Copyright (c) 2015, Google Inc. Please see the AUTHORS file for details.
2
// All rights reserved. Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4

5
part of '../../../vector_math_geometry.dart';
6

7
class TransformFilter extends InplaceGeometryFilter {
8
  Matrix4 transform;
9

10
  TransformFilter(this.transform);
1✔
11

12
  @override
×
NEW
13
  List<VertexAttrib> get requires => <VertexAttrib>[
×
NEW
14
    VertexAttrib('POSITION', 3, 'float'),
×
15
  ];
16

17
  @override
1✔
18
  void filterInplace(MeshGeometry mesh) {
19
    final position = mesh.getViewForAttrib('POSITION');
1✔
20
    if (position is Vector3List) {
1✔
21
      for (var i = 0; i < position.length; ++i) {
3✔
22
        // multiplication always returns Vector3 here
23
        // ignore: invalid_assignment
24
        position[i] = transform * position[i];
4✔
25
      }
26
    }
27
  }
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc