Struct BoundingBox
Definition
- Namespace:
- Tizen.NUI.Physics2D.Chipmunk
- Assembly:
- Tizen.NUI.Physics2D.dll
Chipmunk's axis-aligned 2D bounding box type.
public struct BoundingBox : IEquatable<BoundingBox>
- Implements
-
Constructors
View Source
BoundingBox(double, double, double, double)
Create a bounding box with the given coordinates.
Declaration
public BoundingBox(double left, double bottom, double right, double top)
Parameters
Type |
Name |
Description |
double |
left |
|
double |
bottom |
|
double |
right |
|
double |
top |
|
Properties
View Source
Bottom
Bottom value of bouding box.
Declaration
public double Bottom { get; set; }
Property Value
View Source
Left
Left value of bounding box.
Declaration
public double Left { get; set; }
Property Value
View Source
Right
Right value of bouding box.
Declaration
public double Right { get; set; }
Property Value
View Source
Top
Top value of bouding box.
Declaration
public double Top { get; set; }
Property Value
Methods
View Source
Equals(object)
Return true if the given object is reference-equal.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
View Source
Equals(BoundingBox)
Return true if the dimensions of both bounding boxes are equal to another (within
distance of each other.)
Declaration
public bool Equals(BoundingBox other)
Parameters
Returns
View Source
GetHashCode()
Get the bounding box hash code.
Declaration
public override int GetHashCode()
Returns
View Source
ToString()
Return a string displaying coordinates formatted like (left, bottom, right, top).
Declaration
public override string ToString()
Returns
Operators
View Source
operator ==(BoundingBox, BoundingBox)
Return true if the dimensions of both bounding boxes are within
of each other.
Declaration
public static bool operator ==(BoundingBox left, BoundingBox right)
Parameters
Returns
View Source
operator !=(BoundingBox, BoundingBox)
Return true if the dimensions of both bounding boxes are not within
of each other.
Declaration
public static bool operator !=(BoundingBox left, BoundingBox right)
Parameters
Returns
Implements
IEquatable<>
Extension Methods