-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHit.cs
More file actions
51 lines (48 loc) · 1.24 KB
/
Copy pathHit.cs
File metadata and controls
51 lines (48 loc) · 1.24 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
using System.Collections.Generic;
using System.Text;
namespace EnesShahn
{
namespace RayTracingEngine
{
class Hit
{
private float tCurrent = float.MaxValue;
private Material material;
private bool intersection;
private Vector3 normal;
private Vector3 point;
private int id = -1;
public float TCurrent
{
get { return tCurrent; }
set { tCurrent = value; }
}
public Material Material
{
get { return material; }
set { material = value; }
}
public Vector3 Normal
{
get { return normal; }
set { normal = value; }
}
public bool Intersection
{
get { return intersection; }
set { intersection = value; }
}
public Vector3 Point
{
get { return point; }
set { point = value; }
}
public int ID
{
get { return id; }
set { id = value; }
}
}
}
}