Browse Source

Merge branch 'master' into inline-all-the-conversion-methods

pull/100/head
James Jackson-South 9 years ago
committed by GitHub
parent
commit
38dc513ba0
  1. 10
      src/ImageSharp/Colors/PackedPixel/Byte4.cs

10
src/ImageSharp/Colors/PackedPixel/Byte4.cs

@ -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()
{

Loading…
Cancel
Save