Class Half4
Defines a four component vector, using half precision floating point coordinates.
Inheritance
Implements
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class Half4 : ValueType, IEquatable<Half4>
Constructors
Half4(Half)
Initializes a new instance of the Half4 structure.
Declaration
public Half4(Half value)
Parameters
Half
value
The value to set for the X, Y, Z, and W components. |
Half4(Half, Half, Half, Half)
Initializes a new instance of the Half4 structure.
Declaration
public Half4(Half x, Half y, Half z, Half w)
Parameters
Half
x
The X component. |
Half
y
The Y component. |
Half
z
The Z component. |
Half
w
The W component. |
Fields
W
Gets or sets the W component of the vector.
Declaration
public Half W
Field Value
Half
The W component of the vector. |
X
Gets or sets the X component of the vector.
Declaration
public Half X
Field Value
Half
The X component of the vector. |
Y
Gets or sets the Y component of the vector.
Declaration
public Half Y
Field Value
Half
The Y component of the vector. |
Z
Gets or sets the Z component of the vector.
Declaration
public Half Z
Field Value
Half
The Z component of the vector. |
Methods
Equals(Half4)
Returns a value that indicates whether the current instance is equal to the specified object.
Declaration
public bool Equals(Half4 other)
Parameters
Half4
other
Object to make the comparison with. |
Returns
System.Boolean
|
Equals(ref Half4, ref Half4)
Determines whether the specified object instances are considered equal.
Declaration
public static bool Equals(ref Half4 value1, ref Half4 value2)
Parameters
Half4
value1
|
Half4
value2
|
Returns
System.Boolean
|
Equals(Object)
Returns a value that indicates whether the current instance is equal to a specified object.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
Object to make the comparison with. |
Returns
System.Boolean
|
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
System.Int32
A 32-bit signed integer hash code. |
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
System.String
A System.String that represents this instance. |
Operators
Equality(Half4, Half4)
Tests for equality between two objects.
Declaration
public static bool operator ==(Half4 left, Half4 right)
Parameters
Half4
left
The first value to compare. |
Half4
right
The second value to compare. |
Returns
System.Boolean
|
Explicit(Float4 to Half4)
Declaration
public static explicit operator Half4(Float4 value)
Parameters
Float4
value
The value. |
Returns
Half4
The result of the conversion. |
Explicit(Half4 to Float4)
Declaration
public static explicit operator Float4(Half4 value)
Parameters
Half4
value
The value. |
Returns
Float4
The result of the conversion. |
Inequality(Half4, Half4)
Tests for inequality between two objects.
Declaration
public static bool operator !=(Half4 left, Half4 right)
Parameters
Half4
left
The first value to compare. |
Half4
right
The second value to compare. |
Returns
System.Boolean
|