Open fwcd opened 1 month ago
Specifically...
Mat2.init(NDArray)
NDArray.asMat2
.zero
.identity
Vec2
Mat2
AdditiveArithmetic
Vec2.mapBoth
.mapEach
mapBoth
T
Element
Array
Sendable
T: Sendable
Internally, the types could also be refactored, e.g.
Coordinates
swift-geodesy
Specifically...
Mat2.init(NDArray)
should be preferred overNDArray.asMat2
).zero
and.identity
a property/constant inVec2
andMat2
, to be consistent withAdditiveArithmetic
Vec2.mapBoth
to.mapEach
(sincemapBoth
could also be read as applying to both components at once)T
toElement
to be consistent with Swift types likeArray
(see e.g. here)Sendable
ifT: Sendable
Internally, the types could also be refactored, e.g.
Coordinates
fromswift-geodesy
)