Search Results for

    Show / Hide Table of Contents

    Class Half4

    Defines a four component vector, using half precision floating point coordinates.

    Inheritance
    System.Object
    Half4
    Implements
    System.IEquatable<Half4>
    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

    true if the current instance is equal to the specified object; false otherwise.

    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

    true if value1 is the same instance as value2 or if both are null references or if value1.Equals(value2) returns true; otherwise, false.

    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

    true if the current instance is equal to the specified object; false otherwise.

    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

    true if left has the same value as right; otherwise, false.

    Explicit(Float4 to Half4)

    Performs an explicit conversion from 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)

    Performs an explicit conversion from Float4 to Half4.

    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

    true if left has a different value than right; otherwise, false.

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    • Constructors
      • Half4(Half)
      • Half4(Half, Half, Half, Half)
    • Fields
      • W
      • X
      • Y
      • Z
    • Methods
      • Equals(Half4)
      • Equals(ref Half4, ref Half4)
      • Equals(Object)
      • GetHashCode()
      • ToString()
    • Operators
      • Equality(Half4, Half4)
      • Explicit(Float4 to Half4)
      • Explicit(Half4 to Float4)
      • Inequality(Half4, Half4)
    • Extension Methods
    Back to top Copyright © 2012-2024 Wojciech Figat