DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
Rectangle2D Class Reference

#include <EnMath.h>

Private Member Functions

void  SetSize (float width, float height)
 
float  GetWidth ()
 
float  GetHeight ()
 
void  SetYawRotation (float radians)
 
float  GetYawRotation ()
 
void  SetPosition (vector new_pos)
 
vector  GetPosition ()
 
void  Rotate2DVector (out vector vec_to_rotate, float rotation_in_rad)
 
bool  IsPositionInside (vector pos_check)
 
bool  AreRectanglePointsInside (Rectangle2D other_rectangle)
 

Private Attributes

float  m_Width
 
float  m_Height
 
float  m_YawRotation
 
vector  m_Position
 

Member Function Documentation

void Rectangle2D::SetSize ( float  width,
float  height 
)
private
float Rectangle2D::GetWidth ( )
private

References m_Width.

Referenced by AreRectanglePointsInside().

float Rectangle2D::GetHeight ( )
private

References m_Height.

Referenced by AreRectanglePointsInside().

void Rectangle2D::SetYawRotation ( float  radians )
private
float Rectangle2D::GetYawRotation ( )
private

References m_YawRotation.

Referenced by AreRectanglePointsInside().

void Rectangle2D::SetPosition ( vector  new_pos )
private
vector Rectangle2D::GetPosition ( )
private

References m_Position.

Referenced by AreRectanglePointsInside(), and IsPositionInside().

void Rectangle2D::Rotate2DVector ( out vector  vec_to_rotate,
float  rotation_in_rad 
)
private
bool Rectangle2D::IsPositionInside ( vector  pos_check )
private
bool Rectangle2D::AreRectanglePointsInside ( Rectangle2D  other_rectangle )
private

Member Data Documentation

float Rectangle2D::m_Width
private

Referenced by GetWidth().

float Rectangle2D::m_Height
private

Referenced by GetHeight().

float Rectangle2D::m_YawRotation
private

Referenced by GetYawRotation().

vector Rectangle2D::m_Position
private

Referenced by GetPosition().


The documentation for this class was generated from the following file:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)