Struct rhusics_ecs::physics2d::ConvexPolygon
source · Expand description
Convex polygon primitive.
Can contain any number of vertices, but a high number of vertices will affect performance of course. Vertices need to be in CCW order.
Fields
vertices: Vec<Point2<S>, Global>
Vertices of the convex polygon.
Implementations
sourceimpl<S> ConvexPolygon<S>
impl<S> ConvexPolygon<S>
Trait Implementations
sourceimpl<S> Clone for ConvexPolygon<S>where
S: Clone,
impl<S> Clone for ConvexPolygon<S>where
S: Clone,
sourcefn clone(&self) -> ConvexPolygon<S>
fn clone(&self) -> ConvexPolygon<S>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<S> ComputeBound<Aabb2<S>> for ConvexPolygon<S>where
S: BaseFloat,
impl<S> ComputeBound<Aabb2<S>> for ConvexPolygon<S>where
S: BaseFloat,
sourcefn compute_bound(&self) -> Aabb2<S>
fn compute_bound(&self) -> Aabb2<S>
Compute the bounding volume
sourceimpl<S> Continuous<Ray<S, Point2<S>, Vector2<S>>> for ConvexPolygon<S>where
S: BaseFloat,
impl<S> Continuous<Ray<S, Point2<S>, Vector2<S>>> for ConvexPolygon<S>where
S: BaseFloat,
sourceimpl<S> Debug for ConvexPolygon<S>where
S: Debug,
impl<S> Debug for ConvexPolygon<S>where
S: Debug,
sourceimpl<'de, S> Deserialize<'de> for ConvexPolygon<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for ConvexPolygon<S>where
S: Deserialize<'de>,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<ConvexPolygon<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ConvexPolygon<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<S> PartialEq<ConvexPolygon<S>> for ConvexPolygon<S>where
S: PartialEq<S>,
impl<S> PartialEq<ConvexPolygon<S>> for ConvexPolygon<S>where
S: PartialEq<S>,
sourcefn eq(&self, other: &ConvexPolygon<S>) -> bool
fn eq(&self, other: &ConvexPolygon<S>) -> bool
sourceimpl<S> Primitive for ConvexPolygon<S>where
S: BaseFloat,
impl<S> Primitive for ConvexPolygon<S>where
S: BaseFloat,
sourceimpl<S> Serialize for ConvexPolygon<S>where
S: Serialize,
impl<S> Serialize for ConvexPolygon<S>where
S: Serialize,
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl<S> Volume<S, S> for ConvexPolygon<S>where
S: BaseFloat + Inertia,
impl<S> Volume<S, S> for ConvexPolygon<S>where
S: BaseFloat + Inertia,
impl<S> StructuralPartialEq for ConvexPolygon<S>
Auto Trait Implementations
impl<S> RefUnwindSafe for ConvexPolygon<S>where
S: RefUnwindSafe,
impl<S> Send for ConvexPolygon<S>where
S: Send,
impl<S> Sync for ConvexPolygon<S>where
S: Sync,
impl<S> Unpin for ConvexPolygon<S>where
S: Unpin,
impl<S> UnwindSafe for ConvexPolygon<S>where
S: UnwindSafe,
Blanket Implementations
impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
fn get_type_id(&self) -> TypeId
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more