< Summary

Information
Class: FixedMathSharp.Fixed4x4Extensions
Assembly: FixedMathSharp
File(s): /home/runner/work/FixedMathSharp/FixedMathSharp/src/FixedMathSharp/Numerics/Extensions/Fixed4x4.Extensions.cs
Line coverage
100%
Covered lines: 21
Uncovered lines: 0
Coverable lines: 21
Total lines: 55
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
ExtractLossyScale(...)100%11100%
SetGlobalScale(...)100%11100%
SetTranslation(...)100%11100%
SetRotation(...)100%11100%
NormalizeRotationMatrix(...)100%11100%
TransformPoint(...)100%11100%
InverseTransformPoint(...)100%11100%

File(s)

/home/runner/work/FixedMathSharp/FixedMathSharp/src/FixedMathSharp/Numerics/Extensions/Fixed4x4.Extensions.cs

#LineLine coverage
 1using System.Runtime.CompilerServices;
 2
 3namespace FixedMathSharp
 4{
 5    public static class Fixed4x4Extensions
 6    {
 7        #region Extraction, and Setters
 8
 9        /// <inheritdoc cref="Fixed4x4.ExtractLossyScale(Fixed4x4)" />
 10        [MethodImpl(MethodImplOptions.AggressiveInlining)]
 11        public static Vector3d ExtractLossyScale(this Fixed4x4 matrix)
 312        {
 313            return Fixed4x4.ExtractLossyScale(matrix);
 314        }
 15
 16        /// <inheritdoc cref="Fixed4x4.SetGlobalScale(Fixed4x4, Vector3d)" />
 17        public static Fixed4x4 SetGlobalScale(this ref Fixed4x4 matrix, Vector3d globalScale)
 218        {
 219            return matrix = Fixed4x4.SetGlobalScale(matrix, globalScale);
 220        }
 21
 22        /// <inheritdoc cref="Fixed4x4.SetTranslation(Fixed4x4, Vector3d)" />
 23        public static Fixed4x4 SetTranslation(this ref Fixed4x4 matrix, Vector3d position)
 124        {
 125            return matrix = Fixed4x4.SetTranslation(matrix, position);
 126        }
 27
 28        /// <inheritdoc cref="Fixed4x4.SetRotation(Fixed4x4, FixedQuaternion)" />
 29        public static Fixed4x4 SetRotation(this ref Fixed4x4 matrix, FixedQuaternion rotation)
 130        {
 131            return matrix = Fixed4x4.SetRotation(matrix, rotation);
 132        }
 33
 34        /// <inheritdoc cref="Fixed4x4.NormalizeRotationMatrix(Fixed4x4)" />
 35        [MethodImpl(MethodImplOptions.AggressiveInlining)]
 36        public static Fixed4x4 NormalizeRotationMatrix(this ref Fixed4x4 matrix)
 137        {
 138            return matrix = Fixed4x4.NormalizeRotationMatrix(matrix);
 139        }
 40
 41        /// <inheritdoc cref="Fixed4x4.TransformPoint(Fixed4x4, Vector3d)" />
 42        public static Vector3d TransformPoint(this Fixed4x4 matrix, Vector3d point)
 143        {
 144            return Fixed4x4.TransformPoint(matrix, point);
 145        }
 46
 47        /// <inheritdoc cref="Fixed4x4.InverseTransformPoint(Fixed4x4, Vector3d)" />
 48        public static Vector3d InverseTransformPoint(this Fixed4x4 matrix, Vector3d point)
 149        {
 150            return Fixed4x4.InverseTransformPoint(matrix, point);
 151        }
 52
 53        #endregion
 54    }
 55}