pub struct Line {
pub start: [f32; 3],
pub end: [f32; 3],
pub start_color: [f32; 4],
pub end_color: [f32; 4],
pub width_px: f32,
}Expand description
One world-space line to draw this frame. Colour is per endpoint, so a line that fades out with distance is a single request with a transparent far end.
Fields§
§start: [f32; 3]World-space start point.
end: [f32; 3]World-space end point.
start_color: [f32; 4]Linear-space RGBA at start / end, interpolated along the run.
end_color: [f32; 4]Linear-space RGBA at end.
width_px: f32On-screen thickness in pixels, held constant at any distance.
Trait Implementations§
impl Copy for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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