23 using System.ComponentModel;
24 using System.Runtime.InteropServices;
25 using SiliconStudio.Core.Serialization;
27 namespace SiliconStudio.Core.Mathematics
33 [StructLayout(LayoutKind.Sequential, Pack = 2)]
34 public struct Half2 : IEquatable<Half2>
97 return Equals(ref left, ref right);
107 [
return: MarshalAs(UnmanagedType.U1)]
110 return !Equals(ref left, ref right);
119 return (this.Y.GetHashCode() + this.X.GetHashCode());
132 return ((value1.X == value2.X) && (value1.Y == value2.Y));
143 return ((this.X == other.
X) && (
this.Y == other.
Y));
158 if (obj.GetType() != base.GetType())
162 return this.Equals((
Half2)obj);
SiliconStudio.Paradox.Games.Mathematics.Vector2 Vector2
Half2(float x, float y)
Initializes a new instance of the T:SiliconStudio.Core.Mathematics.Half2 structure.
Represents a two dimensional mathematical vector.
Half X
Gets or sets the X component of the vector.
bool Equals(Half2 other)
Returns a value that indicates whether the current instance is equal to the specified object...
_In_ size_t _In_ DXGI_FORMAT _In_ size_t _In_ float size_t y
static bool Equals(ref Half2 value1, ref Half2 value2)
Determines whether the specified object instances are considered equal.
A half precision (16 bit) floating point value.
Half2(float value)
Initializes a new instance of the T:SiliconStudio.Core.Mathematics.Half2 structure.
float Y
The Y component of the vector.
SiliconStudio.Paradox.Games.Mathematics.Half Half
Half2(Half x, Half y)
Initializes a new instance of the T:SiliconStudio.Core.Mathematics.Half2 structure.
float X
The X component of the vector.
Defines a two component vector, using half precision floating point coordinates.
Half2(Half value)
Initializes a new instance of the T:SiliconStudio.Core.Mathematics.Half2 structure.
Half Y
Gets or sets the Y component of the vector.
override int GetHashCode()
Returns the hash code for this instance.
override bool Equals(object obj)
Returns a value that indicates whether the current instance is equal to a specified object...