Open 3D Engine LyShine Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
UiTransformInterface::RectPoints Struct Reference

Struct that stores the 4 points of a (transformed) rectangle and provides access either as an array or via access functions. More...

#include <UiTransformBus.h>

Public Types

enum  Corner {
  Corner_TopLeft , Corner_TopRight , Corner_BottomRight , Corner_BottomLeft ,
  Corner_Count
}
 

Public Member Functions

 RectPoints (float left, float right, float top, float bottom)
 
AZ::Vector2 & TopLeft ()
 
const AZ::Vector2 & TopLeft () const
 
AZ::Vector2 & TopRight ()
 
const AZ::Vector2 & TopRight () const
 
AZ::Vector2 & BottomRight ()
 
const AZ::Vector2 & BottomRight () const
 
AZ::Vector2 & BottomLeft ()
 
const AZ::Vector2 & BottomLeft () const
 
AZ::Vector2 GetCenter () const
 
AZ::Vector2 GetAxisAlignedSize () const
 
AZ::Vector2 GetAxisAlignedTopLeft () const
 
AZ::Vector2 GetAxisAlignedTopRight () const
 
AZ::Vector2 GetAxisAlignedBottomRight () const
 
AZ::Vector2 GetAxisAlignedBottomLeft () const
 
void SetAxisAligned (float left, float right, float top, float bottom)
 
RectPoints Transform (AZ::Matrix4x4 &transform) const
 
RectPoints operator- (const RectPoints &rhs) const
 

Public Attributes

AZ::Vector2 pt [Corner_Count]
 

Detailed Description

Struct that stores the 4 points of a (transformed) rectangle and provides access either as an array or via access functions.


The documentation for this struct was generated from the following file: