Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    BoundingBoxExt Struct

    Namespace: Stride.Core.Mathematics
    Assembly: Stride.Core.Mathematics.dll

    Represents an axis-aligned bounding box in three dimensional space that store only the Center and Extent.

    [DataContract]
    public struct BoundingBoxExt : IEquatable<BoundingBoxExt>
    Name Description
    Constructors
    BoundingBoxExt(BoundingBox)

    Initializes a new instance of the BoundingBoxExt struct.

    BoundingBoxExt(Vector3, Vector3)

    Initializes a new instance of the BoundingBoxExt struct.

    Fields
    Center

    The center of this bounding box.

    Empty

    A BoundingBoxExt which represents an empty space.

    Extent

    The extent of this bounding box.

    Properties
    Maximum

    Gets the maximum.

    Minimum

    Gets the minimum.

    Methods
    Equals(BoundingBoxExt)
    Equals(Object)
    GetHashCode()
    Merge(ref BoundingBoxExt, ref BoundingBoxExt, out BoundingBoxExt)

    Constructs a BoundingBoxExt that is as large as the total combined area of the two specified boxes.

    Transform(Matrix)

    Transform this Bounding box

    Operators
    Equality(BoundingBoxExt, BoundingBoxExt)

    Implements the ==.

    Explicit(BoundingBox to BoundingBoxExt)

    Performs an explicit conversion from BoundingBox to BoundingBoxExt.

    Explicit(BoundingBoxExt to BoundingBox)

    Performs an explicit conversion from BoundingBoxExt to BoundingBox.

    Inequality(BoundingBoxExt, BoundingBoxExt)

    Implements the !=.

    | Improve this Doc View Source

    Constructors


    BoundingBoxExt(BoundingBox)

    Initializes a new instance of the BoundingBoxExt struct.

    public BoundingBoxExt(BoundingBox box)
    Parameters
    Type Name Description
    BoundingBox box

    The box.


    BoundingBoxExt(Vector3, Vector3)

    Initializes a new instance of the BoundingBoxExt struct.

    public BoundingBoxExt(Vector3 minimum, Vector3 maximum)
    Parameters
    Type Name Description
    Vector3 minimum

    The minimum vertex of the bounding box.

    Vector3 maximum

    The maximum vertex of the bounding box.

    | Improve this Doc View Source

    Fields


    Center

    The center of this bounding box.

    public Vector3 Center
    Field Value
    Type Description
    Vector3

    Empty

    A BoundingBoxExt which represents an empty space.

    public static readonly BoundingBoxExt Empty
    Field Value
    Type Description
    BoundingBoxExt

    Extent

    The extent of this bounding box.

    public Vector3 Extent
    Field Value
    Type Description
    Vector3
    | Improve this Doc View Source

    Properties


    Maximum

    Gets the maximum.

    public readonly Vector3 Maximum { get; }
    Property Value
    Type Description
    Vector3

    The maximum.


    Minimum

    Gets the minimum.

    public readonly Vector3 Minimum { get; }
    Property Value
    Type Description
    Vector3

    The minimum.

    | Improve this Doc View Source

    Methods


    Equals(BoundingBoxExt)

    public bool Equals(BoundingBoxExt other)
    Parameters
    Type Name Description
    BoundingBoxExt other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    Merge(ref BoundingBoxExt, ref BoundingBoxExt, out BoundingBoxExt)

    Constructs a BoundingBoxExt that is as large as the total combined area of the two specified boxes.

    public static void Merge(ref BoundingBoxExt value1, ref BoundingBoxExt value2, out BoundingBoxExt result)
    Parameters
    Type Name Description
    BoundingBoxExt value1

    The first box to merge.

    BoundingBoxExt value2

    The second box to merge.

    BoundingBoxExt result

    When the method completes, contains the newly constructed bounding box.


    Transform(Matrix)

    Transform this Bounding box

    public void Transform(Matrix world)
    Parameters
    Type Name Description
    Matrix world

    The transform to apply to the bounding box.

    | Improve this Doc View Source

    Operators


    Equality(BoundingBoxExt, BoundingBoxExt)

    Implements the ==.

    public static bool operator ==(BoundingBoxExt left, BoundingBoxExt right)
    Parameters
    Type Name Description
    BoundingBoxExt left

    The left.

    BoundingBoxExt right

    The right.

    Returns
    Type Description
    System.Boolean

    The result of the operator.


    Explicit(BoundingBox to BoundingBoxExt)

    Performs an explicit conversion from BoundingBox to BoundingBoxExt.

    public static explicit operator BoundingBoxExt(BoundingBox boundingBox)
    Parameters
    Type Name Description
    BoundingBox boundingBox

    The bounding box.

    Returns
    Type Description
    BoundingBoxExt

    The result of the conversion.


    Explicit(BoundingBoxExt to BoundingBox)

    Performs an explicit conversion from BoundingBoxExt to BoundingBox.

    public static explicit operator BoundingBox(BoundingBoxExt bbExt)
    Parameters
    Type Name Description
    BoundingBoxExt bbExt

    The bb ext.

    Returns
    Type Description
    BoundingBox

    The result of the conversion.


    Inequality(BoundingBoxExt, BoundingBoxExt)

    Implements the !=.

    public static bool operator !=(BoundingBoxExt left, BoundingBoxExt right)
    Parameters
    Type Name Description
    BoundingBoxExt left

    The left.

    BoundingBoxExt right

    The right.

    Returns
    Type Description
    System.Boolean

    The result of the operator.


    Inherited Members

    System.ValueType.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation