-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAngularVelocity1D.g.cs
More file actions
46 lines (41 loc) · 2.37 KB
/
AngularVelocity1D.g.cs
File metadata and controls
46 lines (41 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright (c) ktsu.dev
// All rights reserved.
// Licensed under the MIT license.
// <auto-generated />
namespace ktsu.Semantics.Quantities;
using System.Numerics;
/// <summary>
/// Signed one-dimensional (Vector1) quantity for the AngularVelocity dimension.
/// </summary>
/// <typeparam name="T">The numeric storage type.</typeparam>
public record AngularVelocity1D<T> : PhysicalQuantity<AngularVelocity1D<T>, T>, IVector1<AngularVelocity1D<T>, T>
where T : struct, INumber<T>
{
/// <summary>Gets a quantity with value zero.</summary>
public static AngularVelocity1D<T> Zero => Create(T.Zero);
/// <summary>
/// Creates a new <see cref="AngularVelocity1D{T}"/> from a value in RadiansPerSecond.
/// </summary>
/// <param name="value">The value in RadiansPerSecond.</param>
/// <returns>A new <see cref="AngularVelocity1D{T}"/> instance.</returns>
public static AngularVelocity1D<T> FromRadiansPerSecond(T value) => Create(value);
/// <summary>
/// Creates a new <see cref="AngularVelocity1D{T}"/> from a value in RevolutionsPerMinute.
/// </summary>
/// <param name="value">The value in RevolutionsPerMinute.</param>
/// <returns>A new <see cref="AngularVelocity1D{T}"/> instance.</returns>
public static AngularVelocity1D<T> FromRevolutionsPerMinute(T value) => Create((value * T.CreateChecked(Units.ConversionConstants.RevolutionsPerMinuteToRadiansPerSecond)));
/// <summary>
/// Gets the magnitude of this quantity as a <see cref="AngularSpeed{T}"/>.
/// </summary>
/// <returns>The non-negative magnitude.</returns>
public AngularSpeed<T> Magnitude() => AngularSpeed<T>.Create(T.Abs(Value));
/// <summary>
/// Multiplies AngularVelocity1D by Duration to produce SignedAngle.
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2225:Operator overloads have named alternates", Justification = "Physics quantity operator")] public static SignedAngle<T> operator *(AngularVelocity1D<T> left, Duration<T> right) => Multiply<SignedAngle<T>>(left, right);
/// <summary>
/// Divides AngularVelocity1D by Duration to produce AngularAcceleration1D.
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2225:Operator overloads have named alternates", Justification = "Physics quantity operator")] public static AngularAcceleration1D<T> operator /(AngularVelocity1D<T> left, Duration<T> right) => Divide<AngularAcceleration1D<T>>(left, right);
};