VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtScreenRect.h
Go to the documentation of this file.
1 /******************************************************************************
2  ** Copyright (c) 2020 MAK Technologies, Inc.
3  ** All rights reserved.
4  ******************************************************************************/
5 
9 #pragma once
10 
11 #include <vrvMath/DtCommonTypes.h>
12 #include <vrvMath/DtVector2.h>
13 
14 #include <vector>
15 
16 namespace makVrv
17 {
18 
21  struct DtScreenRect
22  {
23  // for unclipped transforms, these may be negative, so use signed vector.
26 
28  uint32 area(void) const
29  {
30  return (vMax.x-vMin.x) * (vMax.y-vMin.y);
31  }
32  };
33 
34  typedef std::vector<DtScreenRect> VectorScreenRectangles;
35 
36 } //namespace makVrv
2 dimensional vector
Vector2_int vMin
Definition: DtScreenRect.h:24
T y
Definition: DtVector2.h:105
std::vector< DtScreenRect > VectorScreenRectangles
Definition: DtScreenRect.h:34
uint32 area(void) const
Get the area of the screen rect.
Definition: DtScreenRect.h:28
unsigned int uint32
Definition: DtCommonTypes.h:28
T x
Definition: DtVector2.h:105
Screen Space Rectangle class.
Definition: DtScreenRect.h:21
Vector2_int vMax
Definition: DtScreenRect.h:25

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)