| | | 1 | | using System.Runtime.CompilerServices; |
| | | 2 | | |
| | | 3 | | namespace 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) |
| | 3 | 12 | | { |
| | 3 | 13 | | return Fixed4x4.ExtractLossyScale(matrix); |
| | 3 | 14 | | } |
| | | 15 | | |
| | | 16 | | /// <inheritdoc cref="Fixed4x4.SetGlobalScale(Fixed4x4, Vector3d)" /> |
| | | 17 | | public static Fixed4x4 SetGlobalScale(this ref Fixed4x4 matrix, Vector3d globalScale) |
| | 2 | 18 | | { |
| | 2 | 19 | | return matrix = Fixed4x4.SetGlobalScale(matrix, globalScale); |
| | 2 | 20 | | } |
| | | 21 | | |
| | | 22 | | /// <inheritdoc cref="Fixed4x4.SetTranslation(Fixed4x4, Vector3d)" /> |
| | | 23 | | public static Fixed4x4 SetTranslation(this ref Fixed4x4 matrix, Vector3d position) |
| | 1 | 24 | | { |
| | 1 | 25 | | return matrix = Fixed4x4.SetTranslation(matrix, position); |
| | 1 | 26 | | } |
| | | 27 | | |
| | | 28 | | /// <inheritdoc cref="Fixed4x4.SetRotation(Fixed4x4, FixedQuaternion)" /> |
| | | 29 | | public static Fixed4x4 SetRotation(this ref Fixed4x4 matrix, FixedQuaternion rotation) |
| | 1 | 30 | | { |
| | 1 | 31 | | return matrix = Fixed4x4.SetRotation(matrix, rotation); |
| | 1 | 32 | | } |
| | | 33 | | |
| | | 34 | | /// <inheritdoc cref="Fixed4x4.NormalizeRotationMatrix(Fixed4x4)" /> |
| | | 35 | | [MethodImpl(MethodImplOptions.AggressiveInlining)] |
| | | 36 | | public static Fixed4x4 NormalizeRotationMatrix(this ref Fixed4x4 matrix) |
| | 1 | 37 | | { |
| | 1 | 38 | | return matrix = Fixed4x4.NormalizeRotationMatrix(matrix); |
| | 1 | 39 | | } |
| | | 40 | | |
| | | 41 | | /// <inheritdoc cref="Fixed4x4.TransformPoint(Fixed4x4, Vector3d)" /> |
| | | 42 | | public static Vector3d TransformPoint(this Fixed4x4 matrix, Vector3d point) |
| | 1 | 43 | | { |
| | 1 | 44 | | return Fixed4x4.TransformPoint(matrix, point); |
| | 1 | 45 | | } |
| | | 46 | | |
| | | 47 | | /// <inheritdoc cref="Fixed4x4.InverseTransformPoint(Fixed4x4, Vector3d)" /> |
| | | 48 | | public static Vector3d InverseTransformPoint(this Fixed4x4 matrix, Vector3d point) |
| | 1 | 49 | | { |
| | 1 | 50 | | return Fixed4x4.InverseTransformPoint(matrix, point); |
| | 1 | 51 | | } |
| | | 52 | | |
| | | 53 | | #endregion |
| | | 54 | | } |
| | | 55 | | } |