pub struct PickingRay3D {
pub origin: Vec3,
pub direction: Vec3,
pub far_point: Vec3,
}Expand description
Picking ray with explicit finite clipping endpoints. See the module recipe.
Fields§
§origin: Vec3World point on the physical near plane, not an inferred camera eye.
direction: Vec3Unit world direction from near toward far (subject to f32 rounding).
origin + direction * t uses world-distance t >= 0.
far_point: Vec3World point on the physical finite far plane. Consumers enforcing camera clipping should limit their query to this endpoint; the ray has no implicit cap.
Trait Implementations§
Source§impl Clone for PickingRay3D
impl Clone for PickingRay3D
Source§fn clone(&self) -> PickingRay3D
fn clone(&self) -> PickingRay3D
Returns a duplicate of the value. Read more
1.0.0 · 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 PickingRay3D
impl Debug for PickingRay3D
Source§impl PartialEq for PickingRay3D
impl PartialEq for PickingRay3D
impl Copy for PickingRay3D
impl StructuralPartialEq for PickingRay3D
Auto Trait Implementations§
impl Freeze for PickingRay3D
impl RefUnwindSafe for PickingRay3D
impl Send for PickingRay3D
impl Sync for PickingRay3D
impl Unpin for PickingRay3D
impl UnwindSafe for PickingRay3D
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