pub struct Ray<Space> {
pub origin: Vector3D<f32, Space>,
pub direction: Vector3D<f32, Space>,
}
Expand description
https://immersive-web.github.io/hit-test/#xrray
Fields§
§origin: Vector3D<f32, Space>
The origin of the ray
direction: Vector3D<f32, Space>
The direction of the ray. Must be normalized.
Trait Implementations§
source§impl<'de, Space> Deserialize<'de> for Ray<Space>where
Space: Deserialize<'de>,
impl<'de, Space> Deserialize<'de> for Ray<Space>where
Space: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<Space: Copy> Copy for Ray<Space>
Auto Trait Implementations§
impl<Space> Freeze for Ray<Space>
impl<Space> RefUnwindSafe for Ray<Space>where
Space: RefUnwindSafe,
impl<Space> Send for Ray<Space>where
Space: Send,
impl<Space> Sync for Ray<Space>where
Space: Sync,
impl<Space> Unpin for Ray<Space>where
Space: Unpin,
impl<Space> UnwindSafe for Ray<Space>where
Space: UnwindSafe,
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