Nuclide
Software Development Kit for id Technology
NSXRSpace.h
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
30class NSXRSpace {
31public:
32 void NSXRSpace( void );
33
35 virtual void SetOrigin( vector );
36
38 virtual void SetAngles( vector );
39
41 virtual vector GetForward( void );
42
44 virtual vector GetRight( void );
45
47 virtual vector GetUp( void );
48
50 virtual vector RoomToWorldOrigin( vector );
51
53 virtual vector RoomToWorldAngles( vector );
54
55private:
56 vector m_vecForward;
57 vector m_vecRight;
58 vector m_vecUp;
59 vector m_vecOrigin;
60};
This class represents a local client space in the world.
Definition: NSXRSpace.h:30
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