#[repr(C)]pub struct MPSRayPackedOriginDirection {
pub origin: MPSPackedFloat3,
pub direction: MPSPackedFloat3,
}Available on crate features
MPSRayIntersector and MPSRayIntersectorTypes only.Expand description
Represents a 3D ray with an origin and a direction
This type is available from the Metal Shading Language by including the MetalPerformanceShaders/MetalPerformanceShaders.h header.
See also Apple’s documentation
Fields§
§origin: MPSPackedFloat3Ray origin. The intersection test will be skipped if the origin contains NaNs or infinities.
direction: MPSPackedFloat3Ray direction. Does not need to be normalized. The intersection test will be skipped if the direction has length zero or contains NaNs or infinities.
Trait Implementations§
Source§impl Clone for MPSRayPackedOriginDirection
impl Clone for MPSRayPackedOriginDirection
Source§fn clone(&self) -> MPSRayPackedOriginDirection
fn clone(&self) -> MPSRayPackedOriginDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MPSRayPackedOriginDirection
impl Debug for MPSRayPackedOriginDirection
Source§impl Encode for MPSRayPackedOriginDirection
impl Encode for MPSRayPackedOriginDirection
Source§impl PartialEq for MPSRayPackedOriginDirection
impl PartialEq for MPSRayPackedOriginDirection
Source§fn eq(&self, other: &MPSRayPackedOriginDirection) -> bool
fn eq(&self, other: &MPSRayPackedOriginDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefEncode for MPSRayPackedOriginDirection
impl RefEncode for MPSRayPackedOriginDirection
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for MPSRayPackedOriginDirection
impl StructuralPartialEq for MPSRayPackedOriginDirection
Auto Trait Implementations§
impl Freeze for MPSRayPackedOriginDirection
impl RefUnwindSafe for MPSRayPackedOriginDirection
impl Send for MPSRayPackedOriginDirection
impl Sync for MPSRayPackedOriginDirection
impl Unpin for MPSRayPackedOriginDirection
impl UnsafeUnpin for MPSRayPackedOriginDirection
impl UnwindSafe for MPSRayPackedOriginDirection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.