VR-Engage  2.2
Loading...
Searching...
No Matches
vector2DI.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2024 MAK Technologies
3** All rights reserved.
4*********************************************************************************/
5
6#pragma once
7
8//! \file vector2DI.h
9//! DtVector2DI is a class that represents a 2-D integer vector.
10
11#include "vreUtil/export.h"
12
13namespace makVre
14{
16{
17public:
19 DtVector2DI(int x, int y);
20
22 const DtVector2DI& operator=(const DtVector2DI& orig);
23
24 void setX(int x);
25 int x() const;
26
27 void setY(int y);
28 int y() const;
29
30protected:
31 int myX;
32 int myY;
33};
34
35inline std::ostream& operator<<(std::ostream& str, const makVre::DtVector2DI& vec)
36{
37 str << "[ x= " << vec.x() << " y= " << vec.y() << " ]";
38 return str;
39}
40} // namespace makVre
Definition vector2DI.h:16
int myX
Definition vector2DI.h:31
const DtVector2DI & operator=(const DtVector2DI &orig)
DtVector2DI(int x, int y)
int myY
Definition vector2DI.h:32
DtVector2DI(const DtVector2DI &orig)
Defines export macros for the VREngage Utility library.
#define UTIL_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
std::ostream & operator<<(std::ostream &str, const makVre::DtVector2DD &vec)
Stream insertion operator for DtVector2DD.
Definition vector2DD.h:110