pub struct Ray {
pub origin: Vector3,
pub direction: Vector3,
}
Expand description
Represents a ray in 3D space. Direction does not have to be a unit vector,
and is used by APIs like Workspace:FindPartOnRay
to set a
max distance.
See Also
Fields§
§origin: Vector3
§direction: Vector3
Implementations§
Trait Implementations§
impl Copy for Ray
impl StructuralPartialEq for Ray
Auto Trait Implementations§
impl RefUnwindSafe for Ray
impl Send for Ray
impl Sync for Ray
impl Unpin for Ray
impl UnwindSafe for Ray
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more