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
    IEquatable<><BoundingBox>

    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
    Type Description
    double
    View Source

    Left

    Left value of bounding box.

    Declaration
    public double Left { get; set; }
    Property Value
    Type Description
    double
    View Source

    Right

    Right value of bouding box.

    Declaration
    public double Right { get; set; }
    Property Value
    Type Description
    double
    View Source

    Top

    Top value of bouding box.

    Declaration
    public double Top { get; set; }
    Property Value
    Type Description
    double

    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
    Type Description
    bool
    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
    Type Name Description
    BoundingBox other
    Returns
    Type Description
    bool
    View Source

    GetHashCode()

    Get the bounding box hash code.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    View Source

    ToString()

    Return a string displaying coordinates formatted like (left, bottom, right, top).

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    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
    Type Name Description
    BoundingBox left
    BoundingBox right
    Returns
    Type Description
    bool
    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
    Type Name Description
    BoundingBox left
    BoundingBox right
    Returns
    Type Description
    bool

    Implements

    IEquatable<>

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX