Table of Contents

Struct Rectangle3D

Namespace
Moongate.UO.Data.Geometry
Assembly
Moongate.UO.Data.dll

Represents Rectangle3D.

public struct Rectangle3D : IEquatable<Rectangle3D>, ISpanFormattable, IFormattable
Implements
Inherited Members

Constructors

Rectangle3D(Point3D, Point3D)

public Rectangle3D(Point3D start, Point3D end)

Parameters

start Point3D
end Point3D

Rectangle3D(int, int, int, int, int, int)

public Rectangle3D(int x, int y, int z, int width, int height, int depth)

Parameters

x int
y int
z int
width int
height int
depth int

Properties

Depth

public int Depth { get; }

Property Value

int

End

public Point3D End { get; set; }

Property Value

Point3D

Height

public int Height { get; }

Property Value

int

Start

public Point3D Start { get; set; }

Property Value

Point3D

Width

public int Width { get; }

Property Value

int

X

public int X { get; set; }

Property Value

int

Y

public int Y { get; set; }

Property Value

int

Z

public int Z { get; set; }

Property Value

int

Methods

Contains(Point2D)

public bool Contains(Point2D p)

Parameters

p Point2D

Returns

bool

Contains(Point3D)

public bool Contains(Point3D p)

Parameters

p Point3D

Returns

bool

Contains(IPoint2D)

public bool Contains(IPoint2D p)

Parameters

p IPoint2D

Returns

bool

Contains(IPoint3D)

public bool Contains(IPoint3D p)

Parameters

p IPoint3D

Returns

bool

Equals(Rectangle3D)

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

public bool Equals(Rectangle3D other)

Parameters

other Rectangle3D

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 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 int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

MakeHold(Rectangle3D)

public void MakeHold(Rectangle3D r)

Parameters

r Rectangle3D

Parse(ReadOnlySpan<char>, IFormatProvider)

public static Rectangle3D Parse(ReadOnlySpan<char> s, IFormatProvider provider)

Parameters

s ReadOnlySpan<char>
provider IFormatProvider

Returns

Rectangle3D

Parse(string)

public static Rectangle3D Parse(string s)

Parameters

s string

Returns

Rectangle3D

Parse(string, IFormatProvider)

public static Rectangle3D Parse(string s, IFormatProvider provider)

Parameters

s string
provider IFormatProvider

Returns

Rectangle3D

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

ToString(string, IFormatProvider)

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

public 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.

TryFormat(Span<char>, out int, ReadOnlySpan<char>, IFormatProvider)

Tries to format the value of the current instance into the provided span of characters.

public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider provider)

Parameters

destination Span<char>

The span in which to write this instance's value formatted as a span of characters.

charsWritten int

When this method returns, contains the number of characters that were written in destination.

format ReadOnlySpan<char>

A span containing the characters that represent a standard or custom format string that defines the acceptable format for destination.

provider IFormatProvider

An optional object that supplies culture-specific formatting information for destination.

Returns

bool

true if the formatting was successful; otherwise, false.

TryParse(ReadOnlySpan<char>, IFormatProvider, out Rectangle3D)

public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider provider, out Rectangle3D result)

Parameters

s ReadOnlySpan<char>
provider IFormatProvider
result Rectangle3D

Returns

bool

TryParse(string, IFormatProvider, out Rectangle3D)

public static bool TryParse(string s, IFormatProvider provider, out Rectangle3D result)

Parameters

s string
provider IFormatProvider
result Rectangle3D

Returns

bool

Operators

operator ==(Rectangle3D, Rectangle3D)

public static bool operator ==(Rectangle3D l, Rectangle3D r)

Parameters

l Rectangle3D
r Rectangle3D

Returns

bool

operator !=(Rectangle3D, Rectangle3D)

public static bool operator !=(Rectangle3D l, Rectangle3D r)

Parameters

l Rectangle3D
r Rectangle3D

Returns

bool