Struct ori_graphics::Curve
source · pub struct Curve {
pub points: Vec<Vec2>,
}
Fields§
§points: Vec<Vec2>
Implementations§
source§impl Curve
impl Curve
pub fn new() -> Self
pub fn arc(center: Vec2, radius: f32, start_angle: f32, end_angle: f32) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn add_point(&mut self, point: Vec2)
pub fn remove_point(&mut self, index: usize)
pub fn clear(&mut self)
pub fn rounded_mesh(self, thickness: f32, color: Color) -> Mesh
Trait Implementations§
source§impl<'a> IntoIterator for &'a Curve
impl<'a> IntoIterator for &'a Curve
source§impl<'a> IntoIterator for &'a mut Curve
impl<'a> IntoIterator for &'a mut Curve
source§impl IntoIterator for Curve
impl IntoIterator for Curve
source§impl PartialEq<Curve> for Curve
impl PartialEq<Curve> for Curve
impl StructuralPartialEq for Curve
Auto Trait Implementations§
impl RefUnwindSafe for Curve
impl Send for Curve
impl Sync for Curve
impl Unpin for Curve
impl UnwindSafe for Curve
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.