You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -104,7 +104,7 @@ public struct KvAffineTransform3<Math : KvMathScope> {
104
104
/// Initializes a scale transformation.
105
105
@inlinable
106
106
publicinit(scale:Vector){
107
-
letscale⁻¹ =1/ scale
107
+
letscale⁻¹ =(1.0asScalar)/ scale
108
108
109
109
self.init(Matrix(diagonal: scale),
110
110
Matrix(diagonal: scale⁻¹),
@@ -123,10 +123,11 @@ public struct KvAffineTransform3<Math : KvMathScope> {
123
123
124
124
/// - Returns: Scale component of given tranform matrix.
125
125
///
126
+
/// - Warning: Assuming the receiver has no shear component. Consider ``decompose(_:)`` method to extract scale from transformations having non-trivial shear component.
126
127
/// - Note: If determinant of the matrix is negative then X scale element is negative and other elements are non-negative.
@@ -203,6 +252,7 @@ public struct KvAffineTransform3<Math : KvMathScope> {
203
252
204
253
/// Scale component of the receiver.
205
254
///
255
+
/// - Warning: Assuming the receiver has no shear component. Consider ``decompose()`` method to extract scale from transformations having non-trivial shear component.
206
256
/// - Note: If determinant of the matrix is negative then X scale element is negative and other elements are non-negative.
0 commit comments