struct ColSeg {
sector: usize,
t1: f64,
ceil: PlaneEq,
floor: PlaneEq,
wall: Option<(usize, f64, Option<(f64, f64)>)>,
}Expand description
Traces one pixel’s ray through sectors starting at (ox, oy, oz) in sector s.
dz is z units per xy unit; t_base is the distance already travelled.
One stretch of a column’s 2D ray inside a sector (global ray parameter t).
Fields§
§sector: usize§t1: f64§ceil: PlaneEq§floor: PlaneEq§wall: Option<(usize, f64, Option<(f64, f64)>)>Wall hit at t1 (index, position along it) and, for a portal, the next sector’s
ceiling/floor heights at the hit point.
Auto Trait Implementations§
impl Freeze for ColSeg
impl RefUnwindSafe for ColSeg
impl Send for ColSeg
impl Sync for ColSeg
impl Unpin for ColSeg
impl UnsafeUnpin for ColSeg
impl UnwindSafe for ColSeg
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more