Struct bevy_math::primitives::Plane2d
source · pub struct Plane2d {
pub normal: Direction2d,
}
Expand description
An unbounded plane in 2D space. It forms a separating surface through the origin, stretching infinitely far
Fields§
§normal: Direction2d
The normal of the plane. The plane will be placed perpendicular to this direction
Implementations§
Trait Implementations§
source§impl Bounded2d for Plane2d
impl Bounded2d for Plane2d
source§fn aabb_2d(&self, translation: Vec2, rotation: f32) -> Aabb2d
fn aabb_2d(&self, translation: Vec2, rotation: f32) -> Aabb2d
Get an axis-aligned bounding box for the shape with the given translation and rotation.
The rotation is in radians, counterclockwise, with 0 meaning no rotation.
source§fn bounding_circle(&self, translation: Vec2, _rotation: f32) -> BoundingCircle
fn bounding_circle(&self, translation: Vec2, _rotation: f32) -> BoundingCircle
Get a bounding circle for the shape
The rotation is in radians, counterclockwise, with 0 meaning no rotation.
source§impl<'de> Deserialize<'de> for Plane2d
impl<'de> Deserialize<'de> for Plane2d
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Plane2d
impl PartialEq for Plane2d
impl Copy for Plane2d
impl Primitive2d for Plane2d
impl StructuralPartialEq for Plane2d
Auto Trait Implementations§
impl RefUnwindSafe for Plane2d
impl Send for Plane2d
impl Sync for Plane2d
impl Unpin for Plane2d
impl UnwindSafe for Plane2d
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