XII Release 0.1.0
Loading...
Searching...
No Matches
xiiSizeTemplate< Type > Class Template Reference

Copyright (c) Theophilus Eriata. All Rights Reserved. More...

#include <Size.h>

Public Member Functions

 XII_DECLARE_POD_TYPE ()
 xiiSizeTemplate ()
 Default constructor does not initialize the data.
 xiiSizeTemplate (Type width, Type height)
 Constructor to set all values.
bool HasNonZeroArea () const
 Returns true if the area described by the size is non zero.

Static Public Member Functions

static constexpr xiiSizeTemplate< Type > MakeZero ()
 Static function that returns a zero-size.
static constexpr xiiSizeTemplate< Type > Make (Type x, Type y)
 Returns a size initialized to x,y.

Public Attributes

Type width
Type height

Detailed Description

template<typename Type>
class xiiSizeTemplate< Type >

Copyright (c) Theophilus Eriata. All Rights Reserved.

A simple size class templated on the type for width and height.

Constructor & Destructor Documentation

◆ xiiSizeTemplate()

template<typename Type>
XII_ALWAYS_INLINE xiiSizeTemplate< Type >::xiiSizeTemplate ( )
default

Default constructor does not initialize the data.

Copyright (c) Theophilus Eriata. All Rights Reserved.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Math/Size.h
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Math/Implementation/Size_inl.h