Build Information
Successful build of GfxMath with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/UnGast/swift-gfx-math.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/UnGast/swift-gfx-math
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 2491615 improve transform array application
Cloned https://github.com/UnGast/swift-gfx-math.git
Revision (git rev-parse @):
2491615cd3a69d04db9aa4996d96f207acf89727
SUCCESS checkout https://github.com/UnGast/swift-gfx-math.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/UnGast/swift-gfx-math.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/31] Compiling GfxMath Color+EColor.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGB.swift:24:24: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public func toIRGB<D>() -> IRGBColor<D> {
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGB.swift:1:26: note: 'D' previously declared here
public struct FpRGBColor<D: BinaryFloatingPoint>: ERGBColor {
^
[4/31] Compiling GfxMath EColor+swim.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGB.swift:24:24: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public func toIRGB<D>() -> IRGBColor<D> {
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGB.swift:1:26: note: 'D' previously declared here
public struct FpRGBColor<D: BinaryFloatingPoint>: ERGBColor {
^
[5/31] Compiling GfxMath EColor.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGB.swift:24:24: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public func toIRGB<D>() -> IRGBColor<D> {
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGB.swift:1:26: note: 'D' previously declared here
public struct FpRGBColor<D: BinaryFloatingPoint>: ERGBColor {
^
[6/31] Compiling GfxMath EColorFormatFpRGB.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGB.swift:24:24: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public func toIRGB<D>() -> IRGBColor<D> {
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGB.swift:1:26: note: 'D' previously declared here
public struct FpRGBColor<D: BinaryFloatingPoint>: ERGBColor {
^
[7/34] Compiling GfxMath EColorFormatFpRGBA.swift
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGBA.swift:28:25: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public func toIRGBA<D>() -> IRGBAColor<D> {
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGBA.swift:3:27: note: 'D' previously declared here
public struct FpRGBAColor<D: BinaryFloatingPoint>: ERGBAColor {
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
[8/34] Compiling GfxMath EColorFormatIRGB.swift
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGBA.swift:28:25: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public func toIRGBA<D>() -> IRGBAColor<D> {
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGBA.swift:3:27: note: 'D' previously declared here
public struct FpRGBAColor<D: BinaryFloatingPoint>: ERGBAColor {
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
[9/34] Compiling GfxMath EColorFormatIRGBA.swift
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGBA.swift:28:25: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public func toIRGBA<D>() -> IRGBAColor<D> {
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGBA.swift:3:27: note: 'D' previously declared here
public struct FpRGBAColor<D: BinaryFloatingPoint>: ERGBAColor {
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
[10/34] Compiling GfxMath ERGBAColor.swift
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGBA.swift:28:25: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public func toIRGBA<D>() -> IRGBAColor<D> {
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGBA.swift:3:27: note: 'D' previously declared here
public struct FpRGBAColor<D: BinaryFloatingPoint>: ERGBAColor {
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
[11/34] Emitting module GfxMath
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGB.swift:24:24: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public func toIRGB<D>() -> IRGBColor<D> {
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGB.swift:1:26: note: 'D' previously declared here
public struct FpRGBColor<D: BinaryFloatingPoint>: ERGBColor {
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGBA.swift:28:25: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public func toIRGBA<D>() -> IRGBAColor<D> {
^
/host/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColorFormatFpRGBA.swift:3:27: note: 'D' previously declared here
public struct FpRGBAColor<D: BinaryFloatingPoint>: ERGBAColor {
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:45:16: warning: 'public' modifier is redundant for property declared in a public extension
@inlinable public var transposed: Self {
^~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:265:5: warning: 'public' modifier is redundant for initializer declared in a public extension
public init<M3: Matrix3Protocol>(topLeft: M3, rest: Self = .identity) where M3.Element == Element {
^~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:174:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_4x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:379:16: warning: no calls to throwing functions occur within 'try' expression
return try! Self([
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:438:12: warning: no calls to throwing functions occur within 'try' expression
return try! lhs.matmul(rhs)
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_2x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:16:20: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
public var line: AnyLine<Vector>
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:18:21: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
public init(line: AnyLine<Vector>, scaleMin: Vector.Element, scaleMax: Vector.Element) {
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Plane.swift:16:5: warning: 'public' modifier is redundant for initializer declared in a public extension
public init(point: VectorProtocol, normal: VectorProtocol) {
^~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:244:27: warning: no calls to throwing functions occur within 'try' expression
return VectorProtocol(try! self.matmul(other).elements)
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:244:37: warning: function call causes an infinite recursion
return VectorProtocol(try! self.matmul(other).elements)
^
[12/34] Compiling GfxMath Accuracy.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
[13/34] Compiling GfxMath Color+Conversions.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
[14/34] Compiling GfxMath Color+DefaultColors.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
[15/34] Compiling GfxMath Color.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
[16/34] Compiling GfxMath Rect.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_2x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:131:54: warning: 'point' is deprecated: use origin
var newMinScale = (min[dimension] - line.point[dimension]) / line.direction[dimension]
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:132:54: warning: 'point' is deprecated: use origin
var newMaxScale = (max[dimension] - line.point[dimension]) / line.direction[dimension]
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:146:41: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return (min: Vector2<Data>(line.pointAtScale(minScale)), max: Vector2<Data>(line.pointAtScale(maxScale)))
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:146:90: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return (min: Vector2<Data>(line.pointAtScale(minScale)), max: Vector2<Data>(line.pointAtScale(maxScale)))
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:174:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_4x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:244:27: warning: no calls to throwing functions occur within 'try' expression
return VectorProtocol(try! self.matmul(other).elements)
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:244:37: warning: function call causes an infinite recursion
return VectorProtocol(try! self.matmul(other).elements)
^
[17/34] Compiling GfxMath Triangle.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_2x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:131:54: warning: 'point' is deprecated: use origin
var newMinScale = (min[dimension] - line.point[dimension]) / line.direction[dimension]
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:132:54: warning: 'point' is deprecated: use origin
var newMaxScale = (max[dimension] - line.point[dimension]) / line.direction[dimension]
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:146:41: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return (min: Vector2<Data>(line.pointAtScale(minScale)), max: Vector2<Data>(line.pointAtScale(maxScale)))
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:146:90: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return (min: Vector2<Data>(line.pointAtScale(minScale)), max: Vector2<Data>(line.pointAtScale(maxScale)))
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:174:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_4x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:244:27: warning: no calls to throwing functions occur within 'try' expression
return VectorProtocol(try! self.matmul(other).elements)
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:244:37: warning: function call causes an infinite recursion
return VectorProtocol(try! self.matmul(other).elements)
^
[18/34] Compiling GfxMath Vector.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_2x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:131:54: warning: 'point' is deprecated: use origin
var newMinScale = (min[dimension] - line.point[dimension]) / line.direction[dimension]
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:132:54: warning: 'point' is deprecated: use origin
var newMaxScale = (max[dimension] - line.point[dimension]) / line.direction[dimension]
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:146:41: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return (min: Vector2<Data>(line.pointAtScale(minScale)), max: Vector2<Data>(line.pointAtScale(maxScale)))
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:146:90: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return (min: Vector2<Data>(line.pointAtScale(minScale)), max: Vector2<Data>(line.pointAtScale(maxScale)))
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:174:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_4x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:244:27: warning: no calls to throwing functions occur within 'try' expression
return VectorProtocol(try! self.matmul(other).elements)
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:244:37: warning: function call causes an infinite recursion
return VectorProtocol(try! self.matmul(other).elements)
^
[19/34] Compiling GfxMath VectorLayout.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_2x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:131:54: warning: 'point' is deprecated: use origin
var newMinScale = (min[dimension] - line.point[dimension]) / line.direction[dimension]
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:132:54: warning: 'point' is deprecated: use origin
var newMaxScale = (max[dimension] - line.point[dimension]) / line.direction[dimension]
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:146:41: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return (min: Vector2<Data>(line.pointAtScale(minScale)), max: Vector2<Data>(line.pointAtScale(maxScale)))
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:146:90: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return (min: Vector2<Data>(line.pointAtScale(minScale)), max: Vector2<Data>(line.pointAtScale(maxScale)))
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:174:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_4x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:244:27: warning: no calls to throwing functions occur within 'try' expression
return VectorProtocol(try! self.matmul(other).elements)
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:244:37: warning: function call causes an infinite recursion
return VectorProtocol(try! self.matmul(other).elements)
^
[20/34] Compiling GfxMath VectorProtocol+Initializers.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
[21/34] Compiling GfxMath VectorProtocol+Operators.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
[22/34] Compiling GfxMath VectorProtocol.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
[23/34] Compiling GfxMath Transformation.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_2x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:33:30: warning: 'point' is deprecated: use origin
"LineProtocol x = (\(point)) + scale * (\(direction))"
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:48:16: warning: 'point' is deprecated: use origin
return point + direction * scale
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:57:29: warning: 'point' is deprecated: use origin
if abs(self.point[axis] - point[axis]) > accuracy {
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:61:49: warning: 'point' is deprecated: use origin
let scale = (point[axis] - self.point[axis]) / direction[axis]
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:109:35: warning: 'point' is deprecated: use origin
if contains(otherLine.point) {
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:110:24: warning: 'point' is deprecated: use origin
return point
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:116:33: warning: 'point' is deprecated: use origin
let scale1 = (otherLine.point - self.point).cross(otherLine.direction) / self.direction.cross(otherLine.direction)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:116:46: warning: 'point' is deprecated: use origin
let scale1 = (otherLine.point - self.point).cross(otherLine.direction) / self.direction.cross(otherLine.direction)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:118:16: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return pointAtScale(scale1)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:128:53: warning: 'point' is deprecated: use origin
let s = (plane.elevation - plane.normal.dot(point)) / (plane.normal.dot(direction))
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:129:16: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return pointAtScale(s)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:16:20: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
public var line: AnyLine<Vector>
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:18:21: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
public init(line: AnyLine<Vector>, scaleMin: Vector.Element, scaleMax: Vector.Element) {
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:7:10: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
line.pointAtScale(scaleMin)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:10:10: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
line.pointAtScale(scaleMax)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:34:16: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
let line = AnyLine(from: start, to: end)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:35:9: warning: variable 'scaleMin' was never mutated; consider changing to 'let' constant
var scaleMin = line.scaleAt(start)!
~~~ ^
let
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:36:9: warning: variable 'scaleMax' was never mutated; consider changing to 'let' constant
var scaleMax = line.scaleAt(end)!
~~~ ^
let
/host/spi-builder-workspace/Sources/GfxMath/geometry/Plane.swift:16:5: warning: 'public' modifier is redundant for initializer declared in a public extension
public init(point: VectorProtocol, normal: VectorProtocol) {
^~~~~~~
[24/34] Compiling GfxMath Line.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_2x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:33:30: warning: 'point' is deprecated: use origin
"LineProtocol x = (\(point)) + scale * (\(direction))"
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:48:16: warning: 'point' is deprecated: use origin
return point + direction * scale
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:57:29: warning: 'point' is deprecated: use origin
if abs(self.point[axis] - point[axis]) > accuracy {
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:61:49: warning: 'point' is deprecated: use origin
let scale = (point[axis] - self.point[axis]) / direction[axis]
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:109:35: warning: 'point' is deprecated: use origin
if contains(otherLine.point) {
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:110:24: warning: 'point' is deprecated: use origin
return point
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:116:33: warning: 'point' is deprecated: use origin
let scale1 = (otherLine.point - self.point).cross(otherLine.direction) / self.direction.cross(otherLine.direction)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:116:46: warning: 'point' is deprecated: use origin
let scale1 = (otherLine.point - self.point).cross(otherLine.direction) / self.direction.cross(otherLine.direction)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:118:16: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return pointAtScale(scale1)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:128:53: warning: 'point' is deprecated: use origin
let s = (plane.elevation - plane.normal.dot(point)) / (plane.normal.dot(direction))
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:129:16: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return pointAtScale(s)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:16:20: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
public var line: AnyLine<Vector>
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:18:21: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
public init(line: AnyLine<Vector>, scaleMin: Vector.Element, scaleMax: Vector.Element) {
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:7:10: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
line.pointAtScale(scaleMin)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:10:10: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
line.pointAtScale(scaleMax)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:34:16: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
let line = AnyLine(from: start, to: end)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:35:9: warning: variable 'scaleMin' was never mutated; consider changing to 'let' constant
var scaleMin = line.scaleAt(start)!
~~~ ^
let
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:36:9: warning: variable 'scaleMax' was never mutated; consider changing to 'let' constant
var scaleMax = line.scaleAt(end)!
~~~ ^
let
/host/spi-builder-workspace/Sources/GfxMath/geometry/Plane.swift:16:5: warning: 'public' modifier is redundant for initializer declared in a public extension
public init(point: VectorProtocol, normal: VectorProtocol) {
^~~~~~~
[25/34] Compiling GfxMath LineSegment.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_2x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:33:30: warning: 'point' is deprecated: use origin
"LineProtocol x = (\(point)) + scale * (\(direction))"
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:48:16: warning: 'point' is deprecated: use origin
return point + direction * scale
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:57:29: warning: 'point' is deprecated: use origin
if abs(self.point[axis] - point[axis]) > accuracy {
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:61:49: warning: 'point' is deprecated: use origin
let scale = (point[axis] - self.point[axis]) / direction[axis]
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:109:35: warning: 'point' is deprecated: use origin
if contains(otherLine.point) {
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:110:24: warning: 'point' is deprecated: use origin
return point
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:116:33: warning: 'point' is deprecated: use origin
let scale1 = (otherLine.point - self.point).cross(otherLine.direction) / self.direction.cross(otherLine.direction)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:116:46: warning: 'point' is deprecated: use origin
let scale1 = (otherLine.point - self.point).cross(otherLine.direction) / self.direction.cross(otherLine.direction)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:118:16: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return pointAtScale(scale1)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:128:53: warning: 'point' is deprecated: use origin
let s = (plane.elevation - plane.normal.dot(point)) / (plane.normal.dot(direction))
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:129:16: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return pointAtScale(s)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:16:20: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
public var line: AnyLine<Vector>
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:18:21: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
public init(line: AnyLine<Vector>, scaleMin: Vector.Element, scaleMax: Vector.Element) {
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:7:10: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
line.pointAtScale(scaleMin)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:10:10: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
line.pointAtScale(scaleMax)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:34:16: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
let line = AnyLine(from: start, to: end)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:35:9: warning: variable 'scaleMin' was never mutated; consider changing to 'let' constant
var scaleMin = line.scaleAt(start)!
~~~ ^
let
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:36:9: warning: variable 'scaleMax' was never mutated; consider changing to 'let' constant
var scaleMax = line.scaleAt(end)!
~~~ ^
let
/host/spi-builder-workspace/Sources/GfxMath/geometry/Plane.swift:16:5: warning: 'public' modifier is redundant for initializer declared in a public extension
public init(point: VectorProtocol, normal: VectorProtocol) {
^~~~~~~
[26/34] Compiling GfxMath Plane.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_2x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:33:30: warning: 'point' is deprecated: use origin
"LineProtocol x = (\(point)) + scale * (\(direction))"
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:48:16: warning: 'point' is deprecated: use origin
return point + direction * scale
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:57:29: warning: 'point' is deprecated: use origin
if abs(self.point[axis] - point[axis]) > accuracy {
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:61:49: warning: 'point' is deprecated: use origin
let scale = (point[axis] - self.point[axis]) / direction[axis]
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:109:35: warning: 'point' is deprecated: use origin
if contains(otherLine.point) {
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:110:24: warning: 'point' is deprecated: use origin
return point
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:116:33: warning: 'point' is deprecated: use origin
let scale1 = (otherLine.point - self.point).cross(otherLine.direction) / self.direction.cross(otherLine.direction)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:116:46: warning: 'point' is deprecated: use origin
let scale1 = (otherLine.point - self.point).cross(otherLine.direction) / self.direction.cross(otherLine.direction)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:118:16: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return pointAtScale(scale1)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:128:53: warning: 'point' is deprecated: use origin
let s = (plane.elevation - plane.normal.dot(point)) / (plane.normal.dot(direction))
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:129:16: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
return pointAtScale(s)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:16:20: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
public var line: AnyLine<Vector>
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:18:21: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
public init(line: AnyLine<Vector>, scaleMin: Vector.Element, scaleMax: Vector.Element) {
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:7:10: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
line.pointAtScale(scaleMin)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:10:10: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
line.pointAtScale(scaleMax)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:34:16: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
let line = AnyLine(from: start, to: end)
^
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:35:9: warning: variable 'scaleMin' was never mutated; consider changing to 'let' constant
var scaleMin = line.scaleAt(start)!
~~~ ^
let
/host/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:36:9: warning: variable 'scaleMax' was never mutated; consider changing to 'let' constant
var scaleMax = line.scaleAt(end)!
~~~ ^
let
/host/spi-builder-workspace/Sources/GfxMath/geometry/Plane.swift:16:5: warning: 'public' modifier is redundant for initializer declared in a public extension
public init(point: VectorProtocol, normal: VectorProtocol) {
^~~~~~~
[27/34] Compiling GfxMath ERGBColor.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:45:16: warning: 'public' modifier is redundant for property declared in a public extension
@inlinable public var transposed: Self {
^~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:265:5: warning: 'public' modifier is redundant for initializer declared in a public extension
public init<M3: Matrix3Protocol>(topLeft: M3, rest: Self = .identity) where M3.Element == Element {
^~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:174:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_4x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:379:16: warning: no calls to throwing functions occur within 'try' expression
return try! Self([
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:438:12: warning: no calls to throwing functions occur within 'try' expression
return try! lhs.matmul(rhs)
^
[28/34] Compiling GfxMath FloatingPointGenericMath.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:45:16: warning: 'public' modifier is redundant for property declared in a public extension
@inlinable public var transposed: Self {
^~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:265:5: warning: 'public' modifier is redundant for initializer declared in a public extension
public init<M3: Matrix3Protocol>(topLeft: M3, rest: Self = .identity) where M3.Element == Element {
^~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:174:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_4x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:379:16: warning: no calls to throwing functions occur within 'try' expression
return try! Self([
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:438:12: warning: no calls to throwing functions occur within 'try' expression
return try! lhs.matmul(rhs)
^
[29/34] Compiling GfxMath Matrix.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:45:16: warning: 'public' modifier is redundant for property declared in a public extension
@inlinable public var transposed: Self {
^~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:265:5: warning: 'public' modifier is redundant for initializer declared in a public extension
public init<M3: Matrix3Protocol>(topLeft: M3, rest: Self = .identity) where M3.Element == Element {
^~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:174:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_4x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:379:16: warning: no calls to throwing functions occur within 'try' expression
return try! Self([
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:438:12: warning: no calls to throwing functions occur within 'try' expression
return try! lhs.matmul(rhs)
^
[30/34] Compiling GfxMath MatrixDimension.swift
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:45:16: warning: 'public' modifier is redundant for property declared in a public extension
@inlinable public var transposed: Self {
^~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:265:5: warning: 'public' modifier is redundant for initializer declared in a public extension
public init<M3: Matrix3Protocol>(topLeft: M3, rest: Self = .identity) where M3.Element == Element {
^~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:174:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_4x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:379:16: warning: no calls to throwing functions occur within 'try' expression
return try! Self([
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:438:12: warning: no calls to throwing functions occur within 'try' expression
return try! lhs.matmul(rhs)
^
[31/34] Compiling GfxMath Point.swift
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_2x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/Transform.swift:24:25: warning: immutable value 'translation' was never used; consider replacing with '_' or removing it
case let .translate(translation):
^~~~~~~~~~~
_
/host/spi-builder-workspace/Sources/GfxMath/Transform.swift:26:28: warning: immutable value 'origin' was never used; consider replacing with '_' or removing it
case let .scale(scale, origin):
^~~~~~
_
[32/34] Compiling GfxMath Quaternion.swift
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_2x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/Transform.swift:24:25: warning: immutable value 'translation' was never used; consider replacing with '_' or removing it
case let .translate(translation):
^~~~~~~~~~~
_
/host/spi-builder-workspace/Sources/GfxMath/Transform.swift:26:28: warning: immutable value 'origin' was never used; consider replacing with '_' or removing it
case let .scale(scale, origin):
^~~~~~
_
[33/34] Compiling GfxMath Size.swift
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_2x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/Transform.swift:24:25: warning: immutable value 'translation' was never used; consider replacing with '_' or removing it
case let .translate(translation):
^~~~~~~~~~~
_
/host/spi-builder-workspace/Sources/GfxMath/Transform.swift:26:28: warning: immutable value 'origin' was never used; consider replacing with '_' or removing it
case let .scale(scale, origin):
^~~~~~
_
[34/34] Compiling GfxMath Transform.swift
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_3x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
associatedtype Element: Numeric
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Swift.Sequence:2:20: note: 'Element' declared here
associatedtype Element where Self.Element == Self.Iterator.Element
^
/host/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
public typealias Dimension = Dim_2x1
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
associatedtype Dimension: MatrixDimension
^
/host/spi-builder-workspace/Sources/GfxMath/Transform.swift:24:25: warning: immutable value 'translation' was never used; consider replacing with '_' or removing it
case let .translate(translation):
^~~~~~~~~~~
_
/host/spi-builder-workspace/Sources/GfxMath/Transform.swift:26:28: warning: immutable value 'origin' was never used; consider replacing with '_' or removing it
case let .scale(scale, origin):
^~~~~~
_
Build complete! (11.12s)
Build complete.
Done.