KallistiOS
##version##
Main Page
Modules
Data Structures
Files
File List
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
addons
include
kos
vector.h
Go to the documentation of this file.
1
/* KallistiOS ##version##
2
3
kos/vector.h
4
Copyright (C) 2002 Dan Potter
5
6
*/
7
8
#ifndef __KOS_VECTOR_H
9
#define __KOS_VECTOR_H
10
11
/** \file kos/vector.h
12
\brief Primitive matrix, vector, and point types.
13
14
This file provides a few primivite data types that are useful for 3D
15
graphics. These are used by the code in kos/bspline.h and can be useful
16
elsewhere, as well.
17
18
\author Dan Potter
19
*/
20
21
#include <sys/cdefs.h>
22
__BEGIN_DECLS
23
24
#include <
arch/types.h
>
25
26
/** \brief Basic 4x4 matrix type.
27
\headerfile kos/vector.h
28
*/
29
typedef
float
matrix_t
[4][4];
30
31
/** \brief 4-part vector type.
32
\headerfile kos/vector.h
33
*/
34
typedef
struct
vectorstr
{
35
float
x
,
y
,
z
,
w
;
36
}
vector_t
;
37
38
/** \brief 4-part point type (alias to the vector_t type).
39
\headerfile kos/vector.h
40
*/
41
typedef
vector_t
point_t
;
42
43
__END_DECLS
44
45
#endif
/* __KOS_VECTOR_H */
46
types.h
Common integer types.
vectorstr::z
float z
Definition:
vector.h:35
vectorstr::y
float y
Definition:
vector.h:35
vectorstr
4-part vector type.
Definition:
vector.h:34
point_t
vector_t point_t
4-part point type (alias to the vector_t type).
Definition:
vector.h:41
matrix_t
float matrix_t[4][4]
Basic 4x4 matrix type.
Definition:
vector.h:29
vector_t
struct vectorstr vector_t
4-part vector type.
vectorstr::x
float x
Definition:
vector.h:35
vectorstr::w
float w
Definition:
vector.h:35
Generated by
1.8.7