VR-Link API Documentation for HLA Evolved
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
matrix
4dPoint.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*******************************************************************************/
5
6
#ifndef _4dPoint_H
7
#define _4dPoint_H
8
12
13
#include <
vlutil/vlMachineTypes.h
>
14
15
16
#ifdef DtUSE_UTILITIES_NAMESPACE
17
namespace
DtUSE_UTILITIES_NAMESPACE
18
{
19
#endif
20
21
class
Dt3dPoint
;
22
class
DtVector
;
23
26
class
DT_DLL_MATRIX
Dt4dPoint
27
{
28
public
:
29
31
Dt4dPoint
();
32
33
Dt4dPoint
(
const
double
& x,
const
double
& y,
const
double
& z,
const
double
& w);
34
35
Dt4dPoint
(
const
Dt4dPoint
& orig);
36
37
virtual
~
Dt4dPoint
();
38
39
Dt4dPoint
& operator=(
const
Dt4dPoint
& rhs);
40
42
43
const
double
& operator[](
const
int
i)
const
;
44
double
& operator[](
const
int
i);
46
47
const
double
& x()
const
;
48
const
double
& y()
const
;
49
const
double
& z()
const
;
50
const
double
& w()
const
;
51
52
virtual
void
set
(
53
const
double
& x,
54
const
double
& y,
55
const
double
& z,
56
const
double
& w );
57
58
void
setX(
const
double
& x);
59
void
setY(
const
double
& y);
60
void
setZ(
const
double
& z);
61
void
setW(
const
double
& w);
62
64
void
setFromVector(
const
DtVector
& vector );
65
67
void
setFrom3dPoint(
const
Dt3dPoint
& point );
68
70
virtual
void
unhomogenize();
71
72
bool
operator==
(
const
Dt4dPoint
& rhs)
const
;
73
bool
operator!=
(
const
Dt4dPoint
& rhs)
const
;
74
75
Dt4dPoint
operator*
(
const
double
& rhs)
const
;
76
Dt4dPoint
& operator*=(
const
double
& rhs);
77
78
Dt4dPoint
operator+
(
const
Dt4dPoint
& rhs)
const
;
79
Dt4dPoint
& operator+=(
const
Dt4dPoint
& rhs);
80
81
Dt4dPoint
operator-
(
const
Dt4dPoint
& rhs)
const
;
82
Dt4dPoint
& operator-=(
const
Dt4dPoint
& rhs);
83
84
protected
:
85
86
double
myX
;
87
double
myY
;
88
double
myZ
;
89
double
myW
;
90
91
};
92
93
#define _4dPoint_inl
94
#include "4dPoint.inl"
95
#undef _4dPoint_inl
96
97
#ifdef DtUSE_UTILITIES_NAMESPACE
98
}
99
#endif
100
101
102
#endif
103
Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)