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 Half3 : IEquatable<Half3>
111 return Equals(ref left, ref right);
121 [
return: MarshalAs(UnmanagedType.U1)]
124 return !Equals(ref left, ref right);
133 int num = this.Z.GetHashCode() + this.Y.GetHashCode();
134 return (this.X.GetHashCode() + num);
147 return (((value1.X == value2.X) && (value1.Y == value2.Y)) && (value1.Z == value2.Z));
158 return (((this.X == other.
X) && (
this.Y == other.
Y)) && (
this.Z == other.
Z));
178 return new Vector3(value.
X, value.
Y, value.
Z);
193 if (obj.GetType() != base.GetType())
197 return this.Equals((
Half3)obj);
Half3(Half x, Half y, Half z)
Initializes a new instance of the T:SiliconStudio.Core.Mathematics.Half3 structure.
float Y
The Y component of the vector.
Half X
Gets or sets the X component of the vector.
override bool Equals(object obj)
Returns a value that indicates whether the current instance is equal to a specified object...
_In_ size_t _In_ DXGI_FORMAT _In_ size_t _In_ float size_t y
Half3(float x, float y, float z)
Initializes a new instance of the T:SiliconStudio.Core.Mathematics.Half3 structure.
float X
The X component of the vector.
Represents a three dimensional mathematical vector.
bool Equals(Half3 other)
Returns a value that indicates whether the current instance is equal to the specified object...
Half3(Half value)
Initializes a new instance of the T:SiliconStudio.Core.Mathematics.Half3 structure.
A half precision (16 bit) floating point value.
override int GetHashCode()
Returns the hash code for this instance.
SiliconStudio.Paradox.Games.Mathematics.Half Half
static bool Equals(ref Half3 value1, ref Half3 value2)
Determines whether the specified object instances are considered equal.
Defines a three component vector, using half precision floating point coordinates.
SiliconStudio.Core.Mathematics.Vector3 Vector3
float Z
The Z component of the vector.
Half3(float value)
Initializes a new instance of the T:SiliconStudio.Core.Mathematics.Half3 structure.
Half Z
Gets or sets the Z component of the vector.
Half Y
Gets or sets the Y component of the vector.
_In_ size_t _In_ DXGI_FORMAT _In_ size_t _In_ float size_t size_t z