Table of Contents

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

xy bool2

bool2(double2)

public bool2(double2 v)

Parameters

v double2

bool2(float2)

public bool2(float2 v)

Parameters

v float2

bool2(int2)

public bool2(int2 v)

Parameters

v int2

bool2(uint2)

public bool2(uint2 v)

Parameters

v uint2

bool2(bool)

public bool2(bool value)

Parameters

value bool

bool2(bool, bool)

public bool2(bool x, bool y)

Parameters

x bool
y bool

bool2(ReadOnlySpan<uint>)

public bool2(ReadOnlySpan<uint> values)

Parameters

values ReadOnlySpan<uint>

bool2(uint)

public bool2(uint value)

Parameters

value uint

bool2(uint, uint)

public bool2(uint x, uint y)

Parameters

x uint
y uint

Fields

x

public uint x

Field Value

uint

y

public uint y

Field Value

uint

Properties

this[int]

public ref uint this[int index] { get; }

Parameters

index int

Property Value

uint

xx

[JsonIgnore]
public readonly bool2 xx { get; }

Property Value

bool2

xxx

[JsonIgnore]
public readonly bool3 xxx { get; }

Property Value

bool3

xxxx

[JsonIgnore]
public readonly bool4 xxxx { get; }

Property Value

bool4

xxxy

[JsonIgnore]
public readonly bool4 xxxy { get; }

Property Value

bool4

xxy

[JsonIgnore]
public readonly bool3 xxy { get; }

Property Value

bool3

xxyx

[JsonIgnore]
public readonly bool4 xxyx { get; }

Property Value

bool4

xxyy

[JsonIgnore]
public readonly bool4 xxyy { get; }

Property Value

bool4

xy

[JsonIgnore]
public bool2 xy { get; set; }

Property Value

bool2

xyx

[JsonIgnore]
public readonly bool3 xyx { get; }

Property Value

bool3

xyxx

[JsonIgnore]
public readonly bool4 xyxx { get; }

Property Value

bool4

xyxy

[JsonIgnore]
public readonly bool4 xyxy { get; }

Property Value

bool4

xyy

[JsonIgnore]
public readonly bool3 xyy { get; }

Property Value

bool3

xyyx

[JsonIgnore]
public readonly bool4 xyyx { get; }

Property Value

bool4

xyyy

[JsonIgnore]
public readonly bool4 xyyy { get; }

Property Value

bool4

yx

[JsonIgnore]
public bool2 yx { get; set; }

Property Value

bool2

yxx

[JsonIgnore]
public readonly bool3 yxx { get; }

Property Value

bool3

yxxx

[JsonIgnore]
public readonly bool4 yxxx { get; }

Property Value

bool4

yxxy

[JsonIgnore]
public readonly bool4 yxxy { get; }

Property Value

bool4

yxy

[JsonIgnore]
public readonly bool3 yxy { get; }

Property Value

bool3

yxyx

[JsonIgnore]
public readonly bool4 yxyx { get; }

Property Value

bool4

yxyy

[JsonIgnore]
public readonly bool4 yxyy { get; }

Property Value

bool4

yy

[JsonIgnore]
public readonly bool2 yy { get; }

Property Value

bool2

yyx

[JsonIgnore]
public readonly bool3 yyx { get; }

Property Value

bool3

yyxx

[JsonIgnore]
public readonly bool4 yyxx { get; }

Property Value

bool4

yyxy

[JsonIgnore]
public readonly bool4 yyxy { get; }

Property Value

bool4

yyy

[JsonIgnore]
public readonly bool3 yyy { get; }

Property Value

bool3

yyyx

[JsonIgnore]
public readonly bool4 yyyx { get; }

Property Value

bool4

yyyy

[JsonIgnore]
public readonly bool4 yyyy { get; }

Property Value

bool4

Methods

Equals(bool2)

Indicates whether the current object is equal to another object of the same type.

public readonly bool Equals(bool2 other)

Parameters

other bool2

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override readonly bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

lhs bool2
rhs bool2

Returns

bool2

implicit operator bool2(double2)

public static implicit operator bool2(double2 v)

Parameters

v double2

Returns

bool2

implicit operator bool2(float2)

public static implicit operator bool2(float2 v)

Parameters

v float2

Returns

bool2

implicit operator bool2(int2)

public static implicit operator bool2(int2 v)

Parameters

v int2

Returns

bool2

implicit operator bool2(uint2)

public static implicit operator bool2(uint2 v)

Parameters

v uint2

Returns

bool2

implicit operator bool2(ReadOnlySpan<uint>)

public static implicit operator bool2(ReadOnlySpan<uint> value)

Parameters

value ReadOnlySpan<uint>

Returns

bool2

implicit operator bool2(uint)

public static implicit operator bool2(uint value)

Parameters

value uint

Returns

bool2

operator !=(bool2, bool2)

public static bool2 operator !=(bool2 lhs, bool2 rhs)

Parameters

lhs bool2
rhs bool2

Returns

bool2