VR-Forces Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvMath
DtPlane.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2017 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
#pragma once
10
11
namespace
makVrv {
12
13
enum
PlaneSide
14
{
15
NO_SIDE
,
16
POSITIVE_SIDE
,
17
NEGATIVE_SIDE
,
18
BOTH_SIDE
19
};
20
23
template
<
class
T>
24
class
DtPlane
25
{
26
public
:
27
29
DtPlane
();
30
32
virtual
~DtPlane
();
33
34
DtVector3<T>
vNormal
;
35
T
d
;
36
41
PlaneSide
getSide
(
const
DtAxisAlignedBoundingBox<T>
& box)
const
;
42
48
PlaneSide
getSide
(
const
DtVector3<T>
& centre,
const
DtVector3<T>
& halfSize)
const
;
49
54
T
getDistance
(
const
DtVector3<T>
& rhs)
const
;
55
};
56
57
}
//namespace makVrv
58
59
#include "DtPlane.inl"
makVrv::POSITIVE_SIDE
Definition:
DtPlane.h:16
makVrv::BOTH_SIDE
Definition:
DtPlane.h:18
makVrv::DtPlane::getDistance
T getDistance(const DtVector3< T > &rhs) const
This is a pseudodistance. The sign of the return value is positive if the point is on the positive si...
makVrv::DtPlane::d
T d
Definition:
DtPlane.h:35
makVrv::DtAxisAlignedBoundingBox
Template for 32/64 bit Axis Aligned bounding boxesnot virtual because its stored as is on the GPU...
Definition:
DtAxisAlignedBoundingBox.h:27
makVrv::PlaneSide
PlaneSide
Definition:
DtPlane.h:13
makVrv::DtPlane::DtPlane
DtPlane()
CTOR.
makVrv::DtPlane::~DtPlane
virtual ~DtPlane()
DTOR.
makVrv::NEGATIVE_SIDE
Definition:
DtPlane.h:17
makVrv::DtVector3
2 dimensional vector
Definition:
DtMath.h:21
makVrv::DtPlane::vNormal
DtVector3< T > vNormal
Definition:
DtPlane.h:34
makVrv::NO_SIDE
Definition:
DtPlane.h:15
makVrv::DtPlane
DtPlane class.
Definition:
DtPlane.h:24
makVrv::DtPlane::getSide
PlaneSide getSide(const DtAxisAlignedBoundingBox< T > &box) const
Returns the side where the alignedBox is. The flag BOTH_SIDE indicates an intersecting box...
Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (
www.mak.com
)