feat: Initial commit

This commit is contained in:
2024-05-24 16:44:41 -04:00
commit c1741de3f9
19 changed files with 1560 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import Foundation
public struct Velocity: Equatable {
public var airflow: Double
public var dimension: PlenumDimension
public var value: Double {
airflow / dimension.areaInSquareFeet
}
public var flagged: Flagged { .velocity(self) }
}
extension Flagged {
public static func velocity(_ velocity: Velocity) -> Self {
.init(wrappedValue: velocity.value, .velocity())
}
}