Search Results for

    Show / Hide Table of Contents

    Class Half3

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

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

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

    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

    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(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

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

    Explicit(Float3 to Half3)

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

    Performs an explicit conversion from Float3 to Half3.

    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

    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
    Back to top Copyright © 2012-2024 Wojciech Figat