Struct Hyperrectangle
Inherited Members
Namespace: Mars.Common
Assembly: Mars.Common.dll
Syntax
public struct Hyperrectangle : ICloneable, IEquatable<Hyperrectangle>, IFormattable
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle
Constructors
| Improve this Doc View SourceHyperrectangle(Double, Double, Double, Double)
Declaration
public Hyperrectangle(double x, double y, double width, double height)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x-coordinate of the lower-left corner of the rectangle.. |
System.Double | y | The y-coordinate of the lower-left corner of the rectangle. |
System.Double | width | The width of the rectangle. |
System.Double | height | The height of the rectangle. |
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle
See Also
Hyperrectangle(Double[], Double[], Boolean)
Declaration
public Hyperrectangle(double[] min, double[] max, bool copy = true)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | min | The minimum point in the hyperrectangle (the lower bound). |
System.Double[] | max | The maximum point in the hyperrectangle (the upper bound). |
System.Boolean | copy | Whether the passed vectors should be copied into this instance or used as-is. Default is true (elements from the given vectors will be copied into new array instances). |
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle
See Also
Properties
| Improve this Doc View SourceMax
Declaration
public readonly double[] Max { get; }
Property Value
Type | Description |
---|---|
System.Double[] |
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle
See Also
Min
Declaration
public readonly double[] Min { get; }
Property Value
Type | Description |
---|---|
System.Double[] |
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle
See Also
NumberOfDimensions
Declaration
public readonly int NumberOfDimensions { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle
See Also
Methods
| Improve this Doc View SourceClone()
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle
See Also
Contains(Double[])
Declaration
public bool Contains(params double[] point)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | point |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle
See Also
Equals(Hyperrectangle)
Declaration
public bool Equals(Hyperrectangle other)
Parameters
Type | Name | Description |
---|---|---|
Hyperrectangle | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current object is equal to the other parameter; otherwise, false. |
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle
See Also
FromMinAndLength(Double[], Double[], Boolean)
Declaration
public static Hyperrectangle FromMinAndLength(double[] min, double[] size, bool copy = true)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | min | The minimum point in the hyperrectangle (the lower bound). |
System.Double[] | size | The size of each dimension (i.e. width, height, and so on). |
System.Boolean | copy | Whether the passed vectors should be copied into this instance or used as-is. Default is true (elements from the given vectors will be copied into new array instances). |
Returns
Type | Description |
---|---|
Hyperrectangle |
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle
See Also
FromMinAndMax(Double[], Double[], Boolean)
Declaration
public static Hyperrectangle FromMinAndMax(double[] min, double[] max, bool copy = true)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | min | The minimum point in the hyperrectangle (the lower bound). |
System.Double[] | max | The maximum point in the hyperrectangle (the upper bound). |
System.Boolean | copy | Whether the passed vectors should be copied into this instance or used as-is. Default is true (elements from the given vectors will be copied into new array instances). |
Returns
Type | Description |
---|---|
Hyperrectangle |
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle
See Also
GetLength()
Declaration
public double[] GetLength()
Returns
Type | Description |
---|---|
System.Double[] |
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle
See Also
IntersectsWith(Hyperrectangle)
Declaration
public bool IntersectsWith(Hyperrectangle rect)
Parameters
Type | Name | Description |
---|---|---|
Hyperrectangle | rect |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle
See Also
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Overrides
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle
See Also
ToString(String, IFormatProvider)
Declaration
public string ToString(string format, IFormatProvider formatProvider = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format to use.-or- A null reference (Nothing in Visual Basic) to use the default format defined for the type of the System.IFormattable implementation. |
System.IFormatProvider | formatProvider | 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
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Remarks
In geometry, an n-orthotope (also called a hyperrectangle or a box) is the generalization of a rectangle for higher dimensions, formally defined as the Cartesian product of intervals.
References:
- Wikipedia contributors, "Hyperrectangle," Wikipedia, The Free Encyclopedia, https://en.wikipedia.org/w/index.php?title=Hyperrectangle