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

Loading…
Cancel
Save