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

MeltyPlayer / MeltyTool / 19622977055

24 Nov 2025 04:05AM UTC coverage: 41.989% (+2.1%) from 39.89%
19622977055

push

github

MeltyPlayer
Switched float precision to fix broken tests.

6747 of 18131 branches covered (37.21%)

Branch coverage included in aggregate %.

28639 of 66144 relevant lines covered (43.3%)

65384.8 hits per line

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

47.83
/FinModelUtility/Fin/Fin/src/math/transform/Transform3dExtensions.cs
1
using System.Numerics;
2

3
using fin.math.matrix.four;
4
using fin.math.rotations;
5
using fin.math.xyz;
6

7

8
namespace fin.math.transform;
9

10
public static class Transform3dExtensions {
11
  public static void SetMatrix(this ITransform3d transform,
12
                               IReadOnlyFinMatrix4x4 matrix)
13
    => transform.SetMatrix(matrix.Impl);
×
14

15
  public static void SetMatrix(this ITransform3d transform,
16
                               Matrix4x4 matrix) {
×
17
    matrix.AssertDecompose(out var translation,
×
18
                           out var quaternion,
×
19
                           out var scale);
×
20

21
    transform.Translation = translation;
×
22
    transform.Rotation = quaternion;
×
23
    transform.Scale = scale;
×
24
  }
×
25

26

27
  public static void SetTranslation(this ITransform3d transform,
28
                                    IReadOnlyXyz xyz)
29
    => transform.SetTranslation(xyz.X, xyz.Y, xyz.Z);
×
30

31
  public static void SetTranslation(this ITransform3d transform,
32
                                    float x,
33
                                    float y,
34
                                    float z)
35
    => transform.Translation = new Vector3(x, y, z);
4,047✔
36

37

38
  public static void SetRotationRadians(this ITransform3d transform,
39
                                        Vector3 xyz)
40
    => transform.SetRotationRadians(xyz.X, xyz.Y, xyz.Z);
709✔
41

42
  public static void SetRotationRadians(this ITransform3d transform,
43
                                        IReadOnlyXyz xyz)
44
    => transform.SetRotationRadians(xyz.X, xyz.Y, xyz.Z);
×
45

46
  public static void SetRotationRadians(this ITransform3d transform,
47
                                        float x,
48
                                        float y,
49
                                        float z)
50
    => transform.SetRotation(QuaternionUtil.CreateZyxRadians(x, y, z));
1,025✔
51

52
  public static void SetRotationDegrees(this ITransform3d transform,
53
                                        Vector3 xyz)
54
    => transform.SetRotationDegrees(xyz.X, xyz.Y, xyz.Z);
×
55

56
  public static void SetRotationDegrees(this ITransform3d transform,
57
                                        IReadOnlyXyz xyz)
58
    => transform.SetRotationDegrees(xyz.X, xyz.Y, xyz.Z);
80✔
59

60
  public static void SetRotationDegrees(this ITransform3d transform,
61
                                        float x,
62
                                        float y,
63
                                        float z)
64
    => transform.SetRotationRadians(x * FinTrig.DEG_2_RAD,
82✔
65
                                    y * FinTrig.DEG_2_RAD,
82✔
66
                                    z * FinTrig.DEG_2_RAD);
82✔
67

68
  public static void SetRotation(this ITransform3d transform,
69
                                 Quaternion quaternion)
70
    => transform.Rotation = quaternion;
1,286✔
71

72
  public static void SetScale(this ITransform3d transform,
73
                              Vector3 xyz)
74
    => transform.Scale = xyz;
1,024✔
75

76
  public static void SetScale(this ITransform3d transform,
77
                              IReadOnlyXyz xyz)
78
    => transform.SetScale(xyz.X, xyz.Y, xyz.Z);
80✔
79

80
  public static void SetScale(this ITransform3d transform,
81
                              float x,
82
                              float y,
83
                              float z)
84
    => transform.SetScale(new Vector3(x, y, z));
206✔
85
}
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