Table of Contents

Struct Bool32Bit

Namespace
HelixToolkit.Maths
Assembly
HelixToolkit.Maths.dll

Represents a bool value with size of 32 bits (4 bytes).

public struct Bool32Bit : IEquatable<Bool32Bit>, IFormattable
Implements
Inherited Members
Extension Methods

Constructors

Bool32Bit(bool)

public Bool32Bit(bool value)

Parameters

value bool

Properties

V

public bool V { readonly get; set; }

Property Value

bool

Methods

Equals(Bool32Bit)

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

public readonly bool Equals(Bool32Bit other)

Parameters

other Bool32Bit

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(string?, IFormatProvider?)

Formats the value of the current instance using the specified format.

public readonly string ToString(string? format, IFormatProvider? formatProvider)

Parameters

format string

The format to use.

-or-

A null reference (Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation.

formatProvider IFormatProvider

The provider to use to format the value.

-or-

A null reference (Nothing in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.

Returns

string

The value of the current instance in the specified format.

Operators

operator ==(Bool32Bit, Bool32Bit)

public static bool operator ==(Bool32Bit left, Bool32Bit right)

Parameters

left Bool32Bit
right Bool32Bit

Returns

bool

implicit operator bool(Bool32Bit)

public static implicit operator bool(Bool32Bit value)

Parameters

value Bool32Bit

Returns

bool

implicit operator Bool32Bit(bool)

public static implicit operator Bool32Bit(bool value)

Parameters

value bool

Returns

Bool32Bit

operator !=(Bool32Bit, Bool32Bit)

public static bool operator !=(Bool32Bit left, Bool32Bit right)

Parameters

left Bool32Bit
right Bool32Bit

Returns

bool