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
valuebool
Properties
V
public bool V { readonly get; set; }
Property Value
Methods
Equals(Bool32Bit)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(Bool32Bit other)
Parameters
otherBool32BitAn 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(string?, IFormatProvider?)
Formats the value of the current instance using the specified format.
public readonly string ToString(string? format, IFormatProvider? formatProvider)
Parameters
formatstringThe format to use.
-or-
A null reference (
Nothingin Visual Basic) to use the default format defined for the type of the IFormattable implementation.formatProviderIFormatProviderThe provider to use to format the value.
-or-
A null reference (
Nothingin 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
Returns
implicit operator bool(Bool32Bit)
public static implicit operator bool(Bool32Bit value)
Parameters
valueBool32Bit
Returns
implicit operator Bool32Bit(bool)
public static implicit operator Bool32Bit(bool value)
Parameters
valuebool
Returns
operator !=(Bool32Bit, Bool32Bit)
public static bool operator !=(Bool32Bit left, Bool32Bit right)