Struct Byte2
A System.Byte vector.
Namespace: GDX.Mathematics
Syntax
[Serializable]
public struct Byte2 : IEquatable<Byte2>, IFormattable
Constructors
| Improve this Doc View SourceByte2(Byte2)
Declaration
public Byte2(Byte2 xy)
Parameters
Type | Name | Description |
---|---|---|
Byte2 | xy | The value to copy. |
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. |
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 |
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. |
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. |
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. |
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. |
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. |
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. |
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 SourceX
X System.Byte.
Declaration
public byte X
Field Value
Type | Description |
---|---|
System.Byte |
Y
Y System.Byte.
Declaration
public byte Y
Field Value
Type | Description |
---|---|
System.Byte |
Properties
| Improve this Doc View SourceItem[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 SourceEquals(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. |
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
GetHashCode()
Get a hash code from the Byte2.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A System.Int32 value. |
Overrides
Remarks
This loosely based on the Fowler–Noll–Vo (FNV) hash function.
ToString()
Returns a System.String representation of the Byte2.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
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 SourceAddition(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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
Division(Byte2, 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. |
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. |
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. |
Equality(Byte2, 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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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 |
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 |
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 |
GreaterThan(Byte2, 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. |
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. |
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. |
GreaterThanOrEqual(Byte2, 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. |
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. |
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. |
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. |
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. |
Inequality(Byte2, 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. |
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. |
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. |
LessThan(Byte2, 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. |
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. |
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. |
LessThanOrEqual(Byte2, 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. |
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. |
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. |
Modulus(Byte2, 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. |
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. |
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. |
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. |
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. |
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. |
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. |
Subtraction(Byte2, 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. |
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. |
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. |
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. |
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. |