BaseBoundarySystem.TryGetRectangularBoundsParams Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the description of the inscribed rectangular bounds.
C++
public:
virtual bool TryGetRectangularBoundsParams([Runtime::InteropServices::Out] UnityEngine::Vector2 % center, [Runtime::InteropServices::Out] float % angle, [Runtime::InteropServices::Out] float % width, [Runtime::InteropServices::Out] float % height);
public bool TryGetRectangularBoundsParams (out UnityEngine.Vector2 center, out float angle, out float width, out float height);
abstract member TryGetRectangularBoundsParams : Vector2 * single * single * single -> bool
override this.TryGetRectangularBoundsParams : Vector2 * single * single * single -> bool
Public Function TryGetRectangularBoundsParams (ByRef center As Vector2, ByRef angle As Single, ByRef width As Single, ByRef height As Single) As Boolean
- center
- UnityEngine.Vector2
The center of the rectangle.
- angle
- Single
The orientation of the rectangle.
- width
- Single
The width of the rectangle.
- height
- Single
The height of the rectangle.
True if an inscribed rectangle was found in the boundary geometry, false otherwise.
Product | Versions |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |