|
|
|
@ -69,20 +69,14 @@ namespace ImageSharp |
|
|
|
return left.PackedValue != right.PackedValue; |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Sets the packed representation from a Vector4.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="vector">The vector to create the packed representation from.</param>
|
|
|
|
/// <inheritdoc />
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
|
public void PackFromVector4(Vector4 vector) |
|
|
|
{ |
|
|
|
this.PackedValue = Pack(ref vector); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Expands the packed representation into a Vector4.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>The expanded vector.</returns>
|
|
|
|
/// <inheritdoc />
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
|
public Vector4 ToVector4() |
|
|
|
{ |
|
|
|
|