pub struct ArrowHelper {
pub origin: Vec3,
pub direction: Vec3,
pub length: f32,
pub color: Color,
pub head_length: f32,
pub head_width: f32,
}Expand description
Directional arrow helper.
Fields§
§origin: Vec3Arrow origin.
direction: Vec3Arrow direction. Zero falls back to negative Z.
length: f32Total arrow length.
color: ColorLine color.
head_length: f32Arrow head length.
head_width: f32Arrow head half-width.
Implementations§
Source§impl ArrowHelper
impl ArrowHelper
Sourcepub fn new(
origin: Vec3,
direction: Vec3,
length: f32,
color: Color,
) -> ArrowHelper
pub fn new( origin: Vec3, direction: Vec3, length: f32, color: Color, ) -> ArrowHelper
Creates an arrow helper.
Sourcepub fn head(self, length: f32, width: f32) -> ArrowHelper
pub fn head(self, length: f32, width: f32) -> ArrowHelper
Returns this helper with explicit head dimensions.
Sourcepub fn to_geometry(&self) -> LineGeometry
pub fn to_geometry(&self) -> LineGeometry
Generates line-list geometry.
Trait Implementations§
Source§impl Clone for ArrowHelper
impl Clone for ArrowHelper
Source§fn clone(&self) -> ArrowHelper
fn clone(&self) -> ArrowHelper
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 moreimpl Copy for ArrowHelper
Source§impl Debug for ArrowHelper
impl Debug for ArrowHelper
Source§impl Default for ArrowHelper
impl Default for ArrowHelper
Source§fn default() -> ArrowHelper
fn default() -> ArrowHelper
Returns the “default value” for a type. Read more
Source§impl PartialEq for ArrowHelper
impl PartialEq for ArrowHelper
impl StructuralPartialEq for ArrowHelper
Auto Trait Implementations§
impl Freeze for ArrowHelper
impl RefUnwindSafe for ArrowHelper
impl Send for ArrowHelper
impl Sync for ArrowHelper
impl Unpin for ArrowHelper
impl UnsafeUnpin for ArrowHelper
impl UnwindSafe for ArrowHelper
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