Panda3D
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
panda
src
physx
physxSphere.h
1
// Filename: physxSphere.h
2
// Created by: enn0x (31Oct09)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#ifndef PHYSXSPHERE_H
16
#define PHYSXSPHERE_H
17
18
#include "pandabase.h"
19
#include "luse.h"
20
21
#include "config_physx.h"
22
23
////////////////////////////////////////////////////////////////////
24
// Class : PhysxSphere
25
// Description : Represents a sphere defined by its center point
26
// and radius.
27
////////////////////////////////////////////////////////////////////
28
class
EXPCL_PANDAPHYSX
PhysxSphere
{
29
30
PUBLISHED:
31
INLINE
PhysxSphere
();
32
INLINE PhysxSphere(
const
PhysxSphere &sphere);
33
INLINE ~PhysxSphere();
34
35
bool
contains(
const
LPoint3f
&p)
const
;
36
bool
contains(
const
PhysxSphere &sphere)
const
;
37
bool
contains(
const
LPoint3f
&min,
const
LPoint3f
&max)
const
;
38
bool
intersect(
const
PhysxSphere &sphere)
const
;
39
bool
is_valid()
const
;
40
41
LPoint3f
get_center()
const
;
42
float
get_radius()
const
;
43
44
void
set_center(
LPoint3f
value);
45
void
set_radius(
float
value);
46
47
public
:
48
NxSphere _sphere;
49
};
50
51
#include "physxSphere.I"
52
53
#endif // PHYSSPHERE_H
PhysxSphere
Represents a sphere defined by its center point and radius.
Definition:
physxSphere.h:28
LPoint3f
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition:
lpoint3.h:99
Generated on Mon Feb 1 2016 13:44:36 for Panda3D by
1.8.5