[−][src]Struct paddle::quicksilver_compat::geom::Line
A line with a starting and end point
Fields
a: Vector
The starting point
b: Vector
The end point
t: f32
The thickness, used only for rendering and not collision
Implementations
impl Line
[src]
pub fn new(start: impl Into<Vector>, end: impl Into<Vector>) -> Line
[src]
Create a new line with a start- and an endpoint
#[must_use]pub fn with_thickness(self, thickness: impl Scalar) -> Line
[src]
Create a line with a changed thickness
Trait Implementations
impl Clone for Line
[src]
impl Copy for Line
[src]
impl Debug for Line
[src]
impl Default for Line
[src]
impl<'de> Deserialize<'de> for Line
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Line
[src]
impl PartialEq<Line> for Line
[src]
pub fn eq(&self, other: &Line) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for Line
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl Shape for Line
[src]
pub fn contains(&self, v: impl Into<Vector>) -> bool
[src]
pub fn intersects(&self, l: &Line) -> bool
[src]
pub fn overlaps_circle(&self, c: &Circle) -> bool
[src]
pub fn overlaps_rectangle(&self, b: &Rectangle) -> bool
[src]
pub fn overlaps(&self, shape: &impl Shape) -> bool
[src]
pub fn center(&self) -> Vector
[src]
pub fn bounding_box(&self) -> Rectangle
[src]
pub fn translate(&self, v: impl Into<Vector>) -> Self
[src]
#[must_use]pub fn transformed_bounding_box(&self, transform: Transform) -> Rectangle
[src]
#[must_use]pub fn constrain(&self, outer: &Rectangle) -> Self where
Self: Sized,
[src]
Self: Sized,
#[must_use]pub fn with_center(&self, center: impl Into<Vector>) -> Self where
Self: Sized,
[src]
Self: Sized,
impl Tessellate for Line
[src]
pub fn tessellate<'a>(&self, mesh: &mut AbstractMesh, bkg: Background<'a>)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Line
[src]
impl Send for Line
[src]
impl Sync for Line
[src]
impl Unpin for Line
[src]
impl UnwindSafe for Line
[src]
Blanket Implementations
impl<T> Activity for T where
T: Any,
[src]
T: Any,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,