Nuclide
Software Development Kit for id Tech
NSXRSpace.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016-2022 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
28class NSXRSpace {
29public:
30 void NSXRSpace( void );
31
33 virtual void SetOrigin( vector );
34
36 virtual void SetAngles( vector );
37
39 virtual vector GetForward( void );
40
42 virtual vector GetRight( void );
43
45 virtual vector GetUp( void );
46
49
52
53private:
54 vector m_vecForward;
55 vector m_vecRight;
56 vector m_vecUp;
57 vector m_vecOrigin;
58};
This class represents a local client space in the world.
Definition: NSXRSpace.h:28
virtual vector GetUp(void)
Get the up facing direction in a normalized vector.
Definition: NSXRSpace.qc:39
virtual vector RoomToWorldAngles(vector)
Takes a room-space angle and translates it into world angles.
Definition: NSXRSpace.qc:56
virtual void SetAngles(vector)
Sets the direction offset of the space in the 3D world.
Definition: NSXRSpace.qc:70
virtual vector GetRight(void)
Get the right facing direction in a normalized vector.
Definition: NSXRSpace.qc:33
void NSXRSpace(void)
Definition: NSXRSpace.qc:18
virtual vector GetForward(void)
Get the forward facing direction in a normalized vector.
Definition: NSXRSpace.qc:27
virtual vector RoomToWorldOrigin(vector)
Takes a room-space position and translates it into world position.
Definition: NSXRSpace.qc:45
virtual void SetOrigin(vector)
Sets the placement of the space in the 3D world.
Definition: NSXRSpace.qc:64
vector(vector) normalize