File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/ImageSharp/ColorProfiles Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public static Rgb FromScaledVector4(Vector4 source)
98
98
/// <returns>The <see cref="Vector4"/>.</returns>
99
99
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
100
100
public Vector4 ToScaledVector4 ( )
101
- => new ( this . ToScaledVector3 ( ) , 1F ) ;
101
+ => new ( this . AsVector3Unsafe ( ) , 1F ) ;
102
102
103
103
/// <inheritdoc/>
104
104
public static void ToScaledVector4 ( ReadOnlySpan < Rgb > source , Span < Vector4 > destination )
@@ -154,7 +154,7 @@ public CieXyz ToProfileConnectingSpace(ColorConversionOptions options)
154
154
Rgb linear = FromScaledVector4 ( options . SourceRgbWorkingSpace . Expand ( this . ToScaledVector4 ( ) ) ) ;
155
155
156
156
// Then convert to xyz
157
- return new CieXyz ( Vector3 . Transform ( linear . ToScaledVector3 ( ) , GetRgbToCieXyzMatrix ( options . SourceRgbWorkingSpace ) ) ) ;
157
+ return new CieXyz ( Vector3 . Transform ( linear . AsVector3Unsafe ( ) , GetRgbToCieXyzMatrix ( options . SourceRgbWorkingSpace ) ) ) ;
158
158
}
159
159
160
160
/// <inheritdoc/>
@@ -171,7 +171,7 @@ public static void ToProfileConnectionSpace(ColorConversionOptions options, Read
171
171
Rgb linear = FromScaledVector4 ( options . SourceRgbWorkingSpace . Expand ( rgb . ToScaledVector4 ( ) ) ) ;
172
172
173
173
// Then convert to xyz
174
- destination [ i ] = new CieXyz ( Vector3 . Transform ( linear . ToScaledVector3 ( ) , matrix ) ) ;
174
+ destination [ i ] = new CieXyz ( Vector3 . Transform ( linear . AsVector3Unsafe ( ) , matrix ) ) ;
175
175
}
176
176
}
177
177
You can’t perform that action at this time.
0 commit comments