-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathray.h
34 lines (28 loc) · 974 Bytes
/
ray.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Filename : ray.h
* Last Modified: 19 June 2020
* Owner : Group 20
*
* Description:
* This file contains the type definition and function declarations used to
* represent a ray.
*
* Other:
* This file is formatted with a tab indent size of 4 and a character
* restriction of 80/line.
*/
#ifndef RAY_H
#define RAY_H
/*----------------------------User-defined Headers----------------------------*/
#include "vec.h"
/*-----------------------------User-defined Types-----------------------------*/
typedef struct Ray {
vec ogn; /* The origin vector of the ray */
vec des; /* The destination vector of the ray */
} ray;
/*---------------------------Function Declarations----------------------------*/
/*================================Constructors================================*/
void ray_set(ray *r, vec ogn, vec des);
/*==============================Unary Operations==============================*/
vec point_at(float d, ray r);
#endif