#[repr(C)]
pub struct DrawLines3dInstance { pub position_before: Vec3, pub position_start: Vec3, pub position_end: Vec3, pub position_after: Vec3, pub color_start: Vec4, pub color_end: Vec4, pub scale: f32, }

Fields

position_before: Vec3

Starting point for the previous line segment. We use this to compute the corner between the previous line segment and the current one.

position_start: Vec3

Starting point for the current line segment. This is also the end point for the previous segment. If the current segment is the very first one in the strip, DrawLines3dInstance::position_before and DrawLines3dInstance::position_start will be the same point.

position_end: Vec3

End point for the current line segment. This is also the start point for the next segment in the strip. If the current segment is the last one in the strip, both DrawLines3dInstance::position_end and DrawLines3dInstance::position_after will have the same value.

position_after: Vec3

End point for the next segment in the strip. This point is used to compute the corner between the current segment and the next one.

color_start: Vec4

Color for the start point in the current line segment.

color_end: Vec4

Color for the end point in the current line segment. If it’s different from the start color, we get a gradient effect.

scale: f32

Thichness of the line strip

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.