BaseBoundarySystem.TryGetRectangularBoundsParams Method

Definition

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);

Parameters

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.

Returns

True if an inscribed rectangle was found in the boundary geometry, false otherwise.

Implements

Applies to

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