TTK
Loading...
Searching...
No Matches
Ray.h
Go to the documentation of this file.
1
7
8#pragma once
9
10namespace ttk {
11 class Ray {
12 public:
13 Ray(float *direction, float *origin) {
14 m_direction = direction;
15 m_origin = origin;
16 this->distance = 0;
17 this->u = 0;
18 this->v = 0;
19 }
21 float *m_origin;
22 float distance;
23 float u;
24 float v;
25 };
26} // namespace ttk
Data structure for a ray.
Definition Ray.h:11
float distance
Definition Ray.h:22
Ray(float *direction, float *origin)
Definition Ray.h:13
float v
Definition Ray.h:24
float * m_origin
Definition Ray.h:21
float u
Definition Ray.h:23
float * m_direction
Definition Ray.h:20
The Topology ToolKit.