Struct bool2
- Namespace
- Misaki.HighPerformance.Mathematics
- Assembly
- Misaki.HighPerformance.Mathematics.dll
[NumericType(typeof(uint), 4, 2, 1, "global::Misaki.HighPerformance.Mathematics.bool", false, true, null, typeof(uint))]
[NumericConvertable("{v}.{c} != 0 ? 0u : ~0u", new Type[] { typeof(int2), typeof(uint2), typeof(float2), typeof(double2) })]
public struct bool2 : IEquatable<bool2>
- Implements
- Inherited Members
Constructors
bool2(bool2)
public bool2(bool2 xy)
Parameters
xybool2
bool2(double2)
public bool2(double2 v)
Parameters
vdouble2
bool2(float2)
public bool2(float2 v)
Parameters
vfloat2
bool2(int2)
public bool2(int2 v)
Parameters
vint2
bool2(uint2)
public bool2(uint2 v)
Parameters
vuint2
bool2(bool)
public bool2(bool value)
Parameters
valuebool
bool2(bool, bool)
public bool2(bool x, bool y)
Parameters
bool2(ReadOnlySpan<uint>)
public bool2(ReadOnlySpan<uint> values)
Parameters
valuesReadOnlySpan<uint>
bool2(uint)
public bool2(uint value)
Parameters
valueuint
bool2(uint, uint)
public bool2(uint x, uint y)
Parameters
Fields
x
public uint x
Field Value
y
public uint y
Field Value
Properties
this[int]
public ref uint this[int index] { get; }
Parameters
indexint
Property Value
xx
[JsonIgnore]
public readonly bool2 xx { get; }
Property Value
xxx
[JsonIgnore]
public readonly bool3 xxx { get; }
Property Value
xxxx
[JsonIgnore]
public readonly bool4 xxxx { get; }
Property Value
xxxy
[JsonIgnore]
public readonly bool4 xxxy { get; }
Property Value
xxy
[JsonIgnore]
public readonly bool3 xxy { get; }
Property Value
xxyx
[JsonIgnore]
public readonly bool4 xxyx { get; }
Property Value
xxyy
[JsonIgnore]
public readonly bool4 xxyy { get; }
Property Value
xy
[JsonIgnore]
public bool2 xy { get; set; }
Property Value
xyx
[JsonIgnore]
public readonly bool3 xyx { get; }
Property Value
xyxx
[JsonIgnore]
public readonly bool4 xyxx { get; }
Property Value
xyxy
[JsonIgnore]
public readonly bool4 xyxy { get; }
Property Value
xyy
[JsonIgnore]
public readonly bool3 xyy { get; }
Property Value
xyyx
[JsonIgnore]
public readonly bool4 xyyx { get; }
Property Value
xyyy
[JsonIgnore]
public readonly bool4 xyyy { get; }
Property Value
yx
[JsonIgnore]
public bool2 yx { get; set; }
Property Value
yxx
[JsonIgnore]
public readonly bool3 yxx { get; }
Property Value
yxxx
[JsonIgnore]
public readonly bool4 yxxx { get; }
Property Value
yxxy
[JsonIgnore]
public readonly bool4 yxxy { get; }
Property Value
yxy
[JsonIgnore]
public readonly bool3 yxy { get; }
Property Value
yxyx
[JsonIgnore]
public readonly bool4 yxyx { get; }
Property Value
yxyy
[JsonIgnore]
public readonly bool4 yxyy { get; }
Property Value
yy
[JsonIgnore]
public readonly bool2 yy { get; }
Property Value
yyx
[JsonIgnore]
public readonly bool3 yyx { get; }
Property Value
yyxx
[JsonIgnore]
public readonly bool4 yyxx { get; }
Property Value
yyxy
[JsonIgnore]
public readonly bool4 yyxy { get; }
Property Value
yyy
[JsonIgnore]
public readonly bool3 yyy { get; }
Property Value
yyyx
[JsonIgnore]
public readonly bool4 yyyx { get; }
Property Value
yyyy
[JsonIgnore]
public readonly bool4 yyyy { get; }
Property Value
Methods
Equals(bool2)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(bool2 other)
Parameters
otherbool2An object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override readonly bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override readonly int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override readonly string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(bool2, bool2)
public static bool2 operator ==(bool2 lhs, bool2 rhs)
Parameters
Returns
implicit operator bool2(double2)
public static implicit operator bool2(double2 v)
Parameters
vdouble2
Returns
implicit operator bool2(float2)
public static implicit operator bool2(float2 v)
Parameters
vfloat2
Returns
implicit operator bool2(int2)
public static implicit operator bool2(int2 v)
Parameters
vint2
Returns
implicit operator bool2(uint2)
public static implicit operator bool2(uint2 v)
Parameters
vuint2
Returns
implicit operator bool2(ReadOnlySpan<uint>)
public static implicit operator bool2(ReadOnlySpan<uint> value)
Parameters
valueReadOnlySpan<uint>
Returns
implicit operator bool2(uint)
public static implicit operator bool2(uint value)
Parameters
valueuint
Returns
operator !=(bool2, bool2)
public static bool2 operator !=(bool2 lhs, bool2 rhs)