Krig Game Engine
src
Sphere.h
Go to the documentation of this file.
1
7
#ifndef _SPHERE_H_
8
#define _SPHERE_H_
9
10
#include "Matrix.h"
11
#include "
Vector.h
"
12
13
class
Sphere
{
14
public
:
15
Sphere
();
16
~
Sphere
();
17
18
void
setSphere(
const
float
&,
const
float
&,
const
float
&,
const
float
&);
19
20
void
getOriginVector(
Vector
&)
const
;
21
float
getRadius()
const
;
22
void
setOriginVector(
const
Vector
&v) { x = v.x; y = v.y; z = v.z; }
23
24
private
:
25
float
x, y, z;
// origin
26
float
radius;
27
};
28
29
#endif
Vector
Definition:
Vector.h:15
Vector.h
Represent and operate on vectors.
Sphere
Definition:
Sphere.h:13
Generated on Wed May 3 2017 00:46:51 for Krig Game Engine by
1.8.13