25 using System.ComponentModel;
26 using System.Runtime.InteropServices;
27 using SiliconStudio.Core.Serialization;
29 namespace SiliconStudio.Core.Mathematics
35 [StructLayout(LayoutKind.Sequential, Pack = 2)]
36 public struct Half4 : IEquatable<Half4>
95 return Equals(ref left, ref right);
107 return !Equals(ref left, ref right);
116 int num2 = this.W.GetHashCode() + this.Z.GetHashCode();
117 int num = this.Y.GetHashCode() + num2;
118 return (this.X.GetHashCode() + num);
131 return (((value1.X == value2.X) && (value1.Y == value2.Y)) && ((value1.Z == value2.Z) && (value1.W == value2.W)));
142 return (((this.X == other.
X) && (
this.Y == other.
Y)) && ((
this.Z == other.
Z) && (
this.W == other.
W)));
162 return new Vector4(value.
X, value.
Y, value.
Z, value.
W);
177 if (obj.GetType() != base.GetType())
181 return this.Equals((
Half4)obj);
float W
The W component of the vector.
Half Z
Gets or sets the Z component of the vector.
float X
The X component of the vector.
_In_ size_t _In_ DXGI_FORMAT _In_ size_t _In_ float size_t y
Half Y
Gets or sets the Y component of the vector.
SiliconStudio.Paradox.Games.Mathematics.Half4 Half4
static bool Equals(ref Half4 value1, ref Half4 value2)
Determines whether the specified object instances are considered equal.
Half W
Gets or sets the W component of the vector.
A half precision (16 bit) floating point value.
Represents a four dimensional mathematical vector.
override bool Equals(object obj)
Returns a value that indicates whether the current instance is equal to a specified object...
bool Equals(Half4 other)
Returns a value that indicates whether the current instance is equal to the specified object...
float Y
The Y component of the vector.
Half4(Half x, Half y, Half z, Half w)
Initializes a new instance of the T:SiliconStudio.Core.Mathematics.Half4 structure.
float Z
The Z component of the vector.
Half4(Half value)
Initializes a new instance of the T:SiliconStudio.Core.Mathematics.Half4 structure.
Defines a four component vector, using half precision floating point coordinates. ...
override int GetHashCode()
Returns the hash code for this instance.
Half X
Gets or sets the X component of the vector.
_In_ size_t _In_ DXGI_FORMAT _In_ size_t _In_ float size_t size_t z