Class Half3
Defines a three component vector, using half precision floating point coordinates.
Inheritance
Implements
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class Half3 : ValueType, IEquatable<Half3>
Constructors
Half3(Half)
Initializes a new instance of the Half3 structure.
Declaration
public Half3(Half value)
Parameters
Half
value
The value to set for the X, Y, and Z components. |
Half3(Half, Half, Half)
Initializes a new instance of the Half3 structure.
Declaration
public Half3(Half x, Half y, Half z)
Parameters
Half
x
The X component. |
Half
y
The Y component. |
Half
z
The Z component. |
Half3(Single)
Initializes a new instance of the Half3 structure.
Declaration
public Half3(float value)
Parameters
System.Single
value
The value to set for the X, Y, and Z components. |
Half3(Single, Single, Single)
Initializes a new instance of the Half3 structure.
Declaration
public Half3(float x, float y, float z)
Parameters
System.Single
x
The X component. |
System.Single
y
The Y component. |
System.Single
z
The Z component. |
Fields
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(Half3)
Returns a value that indicates whether the current instance is equal to the specified object.
Declaration
public bool Equals(Half3 other)
Parameters
Half3
other
Object to make the comparison with. |
Returns
System.Boolean
|
Equals(ref Half3, ref Half3)
Determines whether the specified object instances are considered equal.
Declaration
public static bool Equals(ref Half3 value1, ref Half3 value2)
Parameters
Half3
value1
|
Half3
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(Half3, Half3)
Tests for equality between two objects.
Declaration
public static bool operator ==(Half3 left, Half3 right)
Parameters
Half3
left
The first value to compare. |
Half3
right
The second value to compare. |
Returns
System.Boolean
|
Explicit(Float3 to Half3)
Declaration
public static explicit operator Half3(Float3 value)
Parameters
Float3
value
The value. |
Returns
Half3
The result of the conversion. |
Explicit(Half3 to Float3)
Declaration
public static explicit operator Float3(Half3 value)
Parameters
Half3
value
The value. |
Returns
Float3
The result of the conversion. |
Inequality(Half3, Half3)
Tests for inequality between two objects.
Declaration
public static bool operator !=(Half3 left, Half3 right)
Parameters
Half3
left
The first value to compare. |
Half3
right
The second value to compare. |
Returns
System.Boolean
|