byte-engine-math 0.1.0

Math type aliases and helpers used across Byte-Engine.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::Vector3;

pub struct Ray {
	pub(crate) origin: Vector3,
	pub(crate) direction: Vector3,
}

impl Ray {
	pub fn new(origin: Vector3, direction: Vector3) -> Self {
		Self { origin, direction }
	}
}