Search Results for

    Show / Hide Table of Contents

    Struct Byte2

    A System.Byte vector.

    Implements
    System.IEquatable<Byte2>
    System.IFormattable
    Namespace: GDX.Mathematics
    Syntax
    [Serializable]
    public struct Byte2 : IEquatable<Byte2>, IFormattable

    Constructors

    | Improve this Doc View Source

    Byte2(Byte2)

    Constructs a Byte2 from a Byte2 value.

    Declaration
    public Byte2(Byte2 xy)
    Parameters
    Type Name Description
    Byte2 xy

    The value to copy.

    | Improve this Doc View Source

    Byte2(Boolean)

    Constructs a Byte2 from a single System.Boolean value by converting it to System.Byte and assigning it to every component.

    Declaration
    public Byte2(bool v)
    Parameters
    Type Name Description
    System.Boolean v

    The System.Boolean value to transcribe.

    | Improve this Doc View Source

    Byte2(Byte)

    Constructs a Byte2 from a single System.Byte value by assigning it to every component.

    Declaration
    public Byte2(byte v)
    Parameters
    Type Name Description
    System.Byte v

    The value to copy to X and Y.

    | Improve this Doc View Source

    Byte2(Byte, Byte)

    Constructs a Byte2 from two System.Byte values.

    Declaration
    public Byte2(byte x, byte y)
    Parameters
    Type Name Description
    System.Byte x

    X value.

    System.Byte y

    Y value.

    | Improve this Doc View Source

    Byte2(Double)

    Constructs a Byte2 from a single System.Double value by converting it to System.Byte and assigning it to every component.

    Declaration
    public Byte2(double v)
    Parameters
    Type Name Description
    System.Double v

    The System.Double value to transcribe.

    | Improve this Doc View Source

    Byte2(Int32, Int32)

    Create a Byte2 from two System.Int32 values.

    Declaration
    public Byte2(int x, int y)
    Parameters
    Type Name Description
    System.Int32 x

    X value.

    System.Int32 y

    Y value.

    | Improve this Doc View Source

    Byte2(Single)

    Constructs a Byte2 from a single System.Single value by converting it to System.Byte and assigning it to every component.

    Declaration
    public Byte2(float v)
    Parameters
    Type Name Description
    System.Single v

    The System.Single value to transcribe.

    | Improve this Doc View Source

    Byte2(bool2)

    Constructs a Byte2 from a Unity.Mathematics.bool2 by conversion.

    Declaration
    public Byte2(bool2 v)
    Parameters
    Type Name Description
    Unity.Mathematics.bool2 v

    The value to transcribe.

    | Improve this Doc View Source

    Byte2(double2)

    Constructs a Byte2 from a Unity.Mathematics.double2 by conversion.

    Declaration
    public Byte2(double2 v)
    Parameters
    Type Name Description
    Unity.Mathematics.double2 v

    The value to transcribe.

    | Improve this Doc View Source

    Byte2(float2)

    Constructs a Byte2 from a Unity.Mathematics.float2 by conversion.

    Declaration
    public Byte2(float2 v)
    Parameters
    Type Name Description
    Unity.Mathematics.float2 v

    The value to transcribe.

    Fields

    | Improve this Doc View Source

    X

    X System.Byte.

    Declaration
    public byte X
    Field Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    Y

    Y System.Byte.

    Declaration
    public byte Y
    Field Value
    Type Description
    System.Byte

    Properties

    | Improve this Doc View Source

    Item[Int32]

    Get the System.Byte at the provided index.

    Declaration
    public byte this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index

    Returns the byte element at a specified index.

    Property Value
    Type Description
    System.Byte
    Exceptions
    Type Condition
    System.IndexOutOfRangeException

    Out of range check.

    Methods

    | Improve this Doc View Source

    Equals(Byte2)

    Does the Byte2 equal another Byte2.

    Declaration
    public bool Equals(Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 rhs

    Target Byte2 to compare with.

    Returns
    Type Description
    System.Boolean

    Returns true if the Byte2 is equal to a given Byte2, false otherwise.

    | Improve this Doc View Source

    Equals(Object)

    Does the Byte2 equal another System.Object (casted).

    Declaration
    public override bool Equals(object o)
    Parameters
    Type Name Description
    System.Object o

    Target System.Object to compare with.

    Returns
    Type Description
    System.Boolean

    Returns true if the Byte2 is equal to a given Byte2, false otherwise.

    Overrides
    System.ValueType.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Get a hash code from the Byte2.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    A System.Int32 value.

    Overrides
    System.ValueType.GetHashCode()
    Remarks

    This loosely based on the Fowler–Noll–Vo (FNV) hash function.

    | Improve this Doc View Source

    ToString()

    Returns a System.String representation of the Byte2.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()
    | Improve this Doc View Source

    ToString(String, IFormatProvider)

    Convert the Byte2 to a System.String using the provided format.

    Declaration
    public string ToString(string format, IFormatProvider formatProvider)
    Parameters
    Type Name Description
    System.String format

    Specified format System.String.

    System.IFormatProvider formatProvider

    Culture-specific format information.

    Returns
    Type Description
    System.String

    Returns a string representation of the Byte2 using a specified format and culture-specific format information.

    Operators

    | Improve this Doc View Source

    Addition(Byte2, Byte2)

    Add two Byte2.

    Declaration
    public static Byte2 operator +(Byte2 lhs, Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of an addition operation on two Byte2.

    | Improve this Doc View Source

    Addition(Byte2, Byte)

    Add a System.Byte to both components of a Byte2.

    Declaration
    public static Byte2 operator +(Byte2 lhs, byte rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    System.Byte rhs

    Right-hand side System.Byte.

    Returns
    Type Description
    Byte2

    Returns the result of an addition operation on an Byte2 and an System.Byte value.

    | Improve this Doc View Source

    Addition(Byte, Byte2)

    Add a Byte2 to a System.Byte.

    Declaration
    public static Byte2 operator +(byte lhs, Byte2 rhs)
    Parameters
    Type Name Description
    System.Byte lhs

    Left-hand side System.Byte.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of an addition operation on an System.Byte value and an Byte2.

    | Improve this Doc View Source

    BitwiseAnd(Byte2, Byte2)

    Bitwise AND two Byte2 values.

    Declaration
    public static Byte2 operator &(Byte2 lhs, Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a bitwise AND operation on two Byte2.

    | Improve this Doc View Source

    BitwiseAnd(Byte2, Byte)

    Bitwise AND a Byte2 and a System.Byte.

    Declaration
    public static Byte2 operator &(Byte2 lhs, byte rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    System.Byte rhs

    Right-hand side System.Byte.

    Returns
    Type Description
    Byte2

    Returns the result of a bitwise AND operation on a Byte2 and a System.Byte value.

    | Improve this Doc View Source

    BitwiseAnd(Byte, Byte2)

    Bitwise AND a System.Byte and a Byte2.

    Declaration
    public static Byte2 operator &(byte lhs, Byte2 rhs)
    Parameters
    Type Name Description
    System.Byte lhs

    Left-hand side System.Byte.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a bitwise AND operation on a System.Byte and a Byte2 value.

    | Improve this Doc View Source

    BitwiseOr(Byte2, Byte2)

    Bitwise OR two Byte2 values.

    Declaration
    public static Byte2 operator |(Byte2 lhs, Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a bitwise OR operation on two Byte2.

    | Improve this Doc View Source

    BitwiseOr(Byte2, Byte)

    Bitwise OR a Byte2 and a System.Byte.

    Declaration
    public static Byte2 operator |(Byte2 lhs, byte rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    System.Byte rhs

    Right-hand side System.Byte.

    Returns
    Type Description
    Byte2

    Returns the result of a bitwise OR operation on a Byte2 and a System.Byte value.

    | Improve this Doc View Source

    BitwiseOr(Byte, Byte2)

    Bitwise OR a System.Byte and a Byte2.

    Declaration
    public static Byte2 operator |(byte lhs, Byte2 rhs)
    Parameters
    Type Name Description
    System.Byte lhs

    Left-hand side System.Byte.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a bitwise OR operation on a System.Byte and a Byte2 value.

    | Improve this Doc View Source

    Decrement(Byte2)

    Decrement Byte2 values.

    Declaration
    public static Byte2 operator --(Byte2 val)
    Parameters
    Type Name Description
    Byte2 val

    Target Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a decrement operation on a Byte2.

    | Improve this Doc View Source

    Division(Byte2, Byte2)

    Divide a Byte2 by another Byte2.

    Declaration
    public static Byte2 operator /(Byte2 lhs, Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a division operation on two Byte2.

    | Improve this Doc View Source

    Division(Byte2, Byte)

    Divide a Byte2 by a System.Byte.

    Declaration
    public static Byte2 operator /(Byte2 lhs, byte rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    System.Byte rhs

    Right-hand side System.Byte.

    Returns
    Type Description
    Byte2

    Returns the result of a division operation on a Byte2 and System.Byte value.

    | Improve this Doc View Source

    Division(Byte, Byte2)

    Divide a System.Byte by a Byte2.

    Declaration
    public static Byte2 operator /(byte lhs, Byte2 rhs)
    Parameters
    Type Name Description
    System.Byte lhs

    Left-hand side System.Byte.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a division operation on a System.Byte value and Byte2.

    | Improve this Doc View Source

    Equality(Byte2, Byte2)

    Determine if one Byte2 is equal to another Byte2.

    Declaration
    public static bool2 operator ==(Byte2 lhs, Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of an EQUALITY operation on two Byte2.

    | Improve this Doc View Source

    Equality(Byte2, Byte)

    Determine if both components of a Byte2 are equal to a System.Byte.

    Declaration
    public static bool2 operator ==(Byte2 lhs, byte rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    System.Byte rhs

    Right-hand side System.Byte.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of an EQUALITY operation on a Byte2 and a System.Byte.

    | Improve this Doc View Source

    Equality(Byte, Byte2)

    Determine if both components of a Byte2 are equal to a System.Byte.

    Declaration
    public static bool2 operator ==(byte lhs, Byte2 rhs)
    Parameters
    Type Name Description
    System.Byte lhs

    Left-hand side System.Byte.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of an EQUALITY operation on a System.Byte and a Byte2.

    | Improve this Doc View Source

    ExclusiveOr(Byte2, Byte2)

    Bitwise XOR two Byte2 values.

    Declaration
    public static Byte2 operator ^(Byte2 lhs, Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a bitwise EXCLUSIVE OR operation on two Byte2.

    | Improve this Doc View Source

    ExclusiveOr(Byte2, Byte)

    Bitwise XOR a Byte2 and a System.Byte.

    Declaration
    public static Byte2 operator ^(Byte2 lhs, byte rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    System.Byte rhs

    Right-hand side System.Byte.

    Returns
    Type Description
    Byte2

    Returns the result of a bitwise XOR operation on a Byte2 and a System.Byte value.

    | Improve this Doc View Source

    ExclusiveOr(Byte, Byte2)

    Bitwise XOR a System.Byte and a Byte2.

    Declaration
    public static Byte2 operator ^(byte lhs, Byte2 rhs)
    Parameters
    Type Name Description
    System.Byte lhs

    Left-hand side System.Byte.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a bitwise XOR operation on a System.Byte and a Byte2 value.

    | Improve this Doc View Source

    Explicit(Boolean to Byte2)

    Explicitly converts a single System.Boolean value to a Byte2 by converting it to System.Byte and assigning it to every component.

    Declaration
    public static explicit operator Byte2(bool v)
    Parameters
    Type Name Description
    System.Boolean v

    The System.Boolean value to transcribe.

    Returns
    Type Description
    Byte2

    A new Byte2.

    | Improve this Doc View Source

    Explicit(Double to Byte2)

    Explicitly converts a single System.Double value to a Byte2 by converting it to System.Byte and assigning it to every component.

    Declaration
    public static explicit operator Byte2(double v)
    Parameters
    Type Name Description
    System.Double v

    The System.Double value to transcribe.

    Returns
    Type Description
    Byte2

    A new Byte2.

    | Improve this Doc View Source

    Explicit(Single to Byte2)

    Explicitly converts a single System.Single value to a Byte2 by converting it to System.Byte and assigning it to every component.

    Declaration
    public static explicit operator Byte2(float v)
    Parameters
    Type Name Description
    System.Single v

    The System.Single value to transcribe.

    Returns
    Type Description
    Byte2

    A new Byte2.

    | Improve this Doc View Source

    Explicit(bool2 to Byte2)

    Explicitly converts a Unity.Mathematics.bool2 to a Byte2 by conversion.

    Declaration
    public static explicit operator Byte2(bool2 v)
    Parameters
    Type Name Description
    Unity.Mathematics.bool2 v

    The value to transcribe.

    Returns
    Type Description
    Byte2

    A new Byte2 created from v.

    | Improve this Doc View Source

    Explicit(double2 to Byte2)

    Explicitly converts a Unity.Mathematics.double2 to a Byte2 by conversion.

    Declaration
    public static explicit operator Byte2(double2 v)
    Parameters
    Type Name Description
    Unity.Mathematics.double2 v

    The value to transcribe.

    Returns
    Type Description
    Byte2

    A new Byte2 created from v.

    | Improve this Doc View Source

    Explicit(float2 to Byte2)

    Explicitly converts a Unity.Mathematics.bool2 to a Byte2 by conversion.

    Declaration
    public static explicit operator Byte2(float2 v)
    Parameters
    Type Name Description
    Unity.Mathematics.float2 v

    The value to transcribe.

    Returns
    Type Description
    Byte2

    A new Byte2 created from v.

    | Improve this Doc View Source

    GreaterThan(Byte2, Byte2)

    Determine if one Byte2 is less than another Byte2.

    Declaration
    public static bool2 operator>(Byte2 lhs, Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a LESS THAN operation on two Byte2.

    | Improve this Doc View Source

    GreaterThan(Byte2, Byte)

    Determine if Byte2 is greater than a System.Byte.

    Declaration
    public static bool2 operator>(Byte2 lhs, byte rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    System.Byte rhs

    Right-hand side System.Byte.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a GREATER THAN operation on a Byte2 and a System.Byte value.

    | Improve this Doc View Source

    GreaterThan(Byte, Byte2)

    Determine if System.Byte is greater than a Byte2.

    Declaration
    public static bool2 operator>(byte lhs, Byte2 rhs)
    Parameters
    Type Name Description
    System.Byte lhs

    Left-hand side System.Byte.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a GREATER THAN operation on a System.Byte and a Byte2 value.

    | Improve this Doc View Source

    GreaterThanOrEqual(Byte2, Byte2)

    Determine if Byte2 is greater than or equal a Byte2.

    Declaration
    public static bool2 operator >=(Byte2 lhs, Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a GREATER THAN OR EQUAL operation on a Byte2 and a Byte2 value.

    | Improve this Doc View Source

    GreaterThanOrEqual(Byte2, Byte)

    Determine if Byte2 is greater than or equal a System.Byte.

    Declaration
    public static bool2 operator >=(Byte2 lhs, byte rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    System.Byte rhs

    Right-hand side System.Byte.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a GREATER THAN OR EQUAL operation on a Byte2 and a System.Byte value.

    | Improve this Doc View Source

    GreaterThanOrEqual(Byte, Byte2)

    Determine if System.Byte is greater than or equal a Byte2.

    Declaration
    public static bool2 operator >=(byte lhs, Byte2 rhs)
    Parameters
    Type Name Description
    System.Byte lhs

    Left-hand side System.Byte.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a GREATER THAN OR EQUAL operation on a System.Byte and a Byte2 value.

    | Improve this Doc View Source

    Implicit(Byte to Byte2)

    Implicitly converts a single System.Byte value to a Byte2 by assigning it to every component.

    Declaration
    public static implicit operator Byte2(byte v)
    Parameters
    Type Name Description
    System.Byte v

    The System.Byte value to transcribe.

    Returns
    Type Description
    Byte2

    A new Byte2.

    | Improve this Doc View Source

    Increment(Byte2)

    Increment Byte2 values.

    Declaration
    public static Byte2 operator ++(Byte2 val)
    Parameters
    Type Name Description
    Byte2 val

    Target Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of an increment operation on a Byte2.

    | Improve this Doc View Source

    Inequality(Byte2, Byte2)

    Determine if one Byte2 is not equal to another Byte2.

    Declaration
    public static bool2 operator !=(Byte2 lhs, Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a NOT EQUAL operation on two Byte2.

    | Improve this Doc View Source

    Inequality(Byte2, Byte)

    Determine if both components of a Byte2 are not equal to a System.Byte.

    Declaration
    public static bool2 operator !=(Byte2 lhs, byte rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    System.Byte rhs

    Right-hand side System.Byte.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a NOT EQUAL operation on a Byte2 and a System.Byte.

    | Improve this Doc View Source

    Inequality(Byte, Byte2)

    Determine if both components of a Byte2 are not equal to a System.Byte.

    Declaration
    public static bool2 operator !=(byte lhs, Byte2 rhs)
    Parameters
    Type Name Description
    System.Byte lhs

    Left-hand side System.Byte.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a NOT EQUAL operation on a System.Byte and a Byte2.

    | Improve this Doc View Source

    LessThan(Byte2, Byte2)

    Determine if one Byte2 is less than another Byte2.

    Declaration
    public static bool2 operator <(Byte2 lhs, Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a LESS THAN operation on two Byte2.

    | Improve this Doc View Source

    LessThan(Byte2, Byte)

    Determine if Byte2 is less than a System.Byte.

    Declaration
    public static bool2 operator <(Byte2 lhs, byte rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    System.Byte rhs

    Right-hand side System.Byte.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a LESS THAN operation on a Byte2 and a System.Byte value.

    | Improve this Doc View Source

    LessThan(Byte, Byte2)

    Determine if System.Byte is less than a Byte2.

    Declaration
    public static bool2 operator <(byte lhs, Byte2 rhs)
    Parameters
    Type Name Description
    System.Byte lhs

    Left-hand side System.Byte.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a LESS THAN operation on a System.Byte and a Byte2 value.

    | Improve this Doc View Source

    LessThanOrEqual(Byte2, Byte2)

    Determine if one Byte2 is less than or equal to another Byte2.

    Declaration
    public static bool2 operator <=(Byte2 lhs, Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a LESS THAN OR EQUAL operation on two Byte2.

    | Improve this Doc View Source

    LessThanOrEqual(Byte2, Byte)

    Determine if Byte2 is less than or equal a System.Byte.

    Declaration
    public static bool2 operator <=(Byte2 lhs, byte rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    System.Byte rhs

    Right-hand side System.Byte.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a LESS THAN OR EQUAL operation on a Byte2 and a System.Byte value.

    | Improve this Doc View Source

    LessThanOrEqual(Byte, Byte2)

    Determine if System.Byte is less than or equal a Byte2.

    Declaration
    public static bool2 operator <=(byte lhs, Byte2 rhs)
    Parameters
    Type Name Description
    System.Byte lhs

    Left-hand side System.Byte.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Unity.Mathematics.bool2

    Returns the result of a LESS THAN OR EQUAL operation on a System.Byte and a Byte2 value.

    | Improve this Doc View Source

    Modulus(Byte2, Byte2)

    Modulus a Byte2 by another Byte2.

    Declaration
    public static Byte2 operator %(Byte2 lhs, Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a modulus operation on two Byte2.

    | Improve this Doc View Source

    Modulus(Byte2, Byte)

    Modulus a Byte2 by a System.Byte.

    Declaration
    public static Byte2 operator %(Byte2 lhs, byte rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    System.Byte rhs

    Right-hand side System.Byte.

    Returns
    Type Description
    Byte2

    Returns the result of a modulus operation on a Byte2 and System.Byte value.

    | Improve this Doc View Source

    Modulus(Byte, Byte2)

    Modulus a System.Byte by a Byte2.

    Declaration
    public static Byte2 operator %(byte lhs, Byte2 rhs)
    Parameters
    Type Name Description
    System.Byte lhs

    Left-hand side System.Byte.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a modulus operation on a System.Byte value and Byte2.

    | Improve this Doc View Source

    Multiply(Byte2, Byte2)

    Multiply two Byte2.

    Declaration
    public static Byte2 operator *(Byte2 lhs, Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a multiplication operation on two Byte2.

    | Improve this Doc View Source

    Multiply(Byte2, Byte)

    Multiply a Byte2 by a System.Byte.

    Declaration
    public static Byte2 operator *(Byte2 lhs, byte rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    System.Byte rhs

    Right-hand side System.Byte.

    Returns
    Type Description
    Byte2

    Returns the result of a multiplication operation on a Byte2 and a System.Byte value.

    | Improve this Doc View Source

    Multiply(Byte, Byte2)

    Multiply a System.Byte by a Byte2.

    Declaration
    public static Byte2 operator *(byte lhs, Byte2 rhs)
    Parameters
    Type Name Description
    System.Byte lhs

    Left-hand side System.Byte.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a multiplication operation on a System.Byte and a Byte2 value.

    | Improve this Doc View Source

    OnesComplement(Byte2)

    Bitwise NOT Byte2 values.

    Declaration
    public static Byte2 operator ~(Byte2 val)
    Parameters
    Type Name Description
    Byte2 val

    Target Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a bitwise NOT operation on a Byte2.

    | Improve this Doc View Source

    Subtraction(Byte2, Byte2)

    Subtract a Byte2 from another Byte2.

    Declaration
    public static Byte2 operator -(Byte2 lhs, Byte2 rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a subtraction operation on two Byte2.

    | Improve this Doc View Source

    Subtraction(Byte2, Byte)

    Subtract a System.Byte from both components of a Byte2.

    Declaration
    public static Byte2 operator -(Byte2 lhs, byte rhs)
    Parameters
    Type Name Description
    Byte2 lhs

    Left-hand side Byte2.

    System.Byte rhs

    Right-hand side System.Byte.

    Returns
    Type Description
    Byte2

    Returns the result of a subtraction operation on a Byte2 and a System.Byte value.

    | Improve this Doc View Source

    Subtraction(Byte, Byte2)

    Subtract both components of a Byte2 from a System.Byte.

    Declaration
    public static Byte2 operator -(byte lhs, Byte2 rhs)
    Parameters
    Type Name Description
    System.Byte lhs

    Left-hand side System.Byte.

    Byte2 rhs

    Right-hand side Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of a subtraction operation on an System.Byte value and an Byte2.

    | Improve this Doc View Source

    UnaryNegation(Byte2)

    Unary minus Byte2 values.

    Declaration
    public static Byte2 operator -(Byte2 val)
    Parameters
    Type Name Description
    Byte2 val

    Target Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of an unary minus operation on a Byte2.

    | Improve this Doc View Source

    UnaryPlus(Byte2)

    Unary plus Byte2 values.

    Declaration
    public static Byte2 operator +(Byte2 val)
    Parameters
    Type Name Description
    Byte2 val

    Target Byte2.

    Returns
    Type Description
    Byte2

    Returns the result of an unary plus operation on a Byte2.

    Implements

    System.IEquatable<T>
    System.IFormattable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.