Struct mgf::Plane
[−]
[src]
pub struct Plane {
pub n: Vector3<f32>,
pub d: f32,
}Planes are a normal vector and a distance.
Fields
n: Vector3<f32>
d: f32
Trait Implementations
impl Copy for Plane[src]
impl Clone for Plane[src]
fn clone(&self) -> Plane[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Plane[src]
impl From<(Point3<f32>, Point3<f32>, Point3<f32>)> for Plane[src]
impl From<Triangle> for Plane[src]
impl MinDistance<Point3<f32>, f32> for Plane[src]
impl MinDistance<Point3<f32>> for Plane[src]
impl Add<Vector3<f32>> for Plane[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, v: Vector3<f32>) -> Plane[src]
Performs the + operation.
impl Sub<Vector3<f32>> for Plane[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, v: Vector3<f32>) -> Plane[src]
Performs the - operation.
impl AddAssign<Vector3<f32>> for Plane[src]
fn add_assign(&mut self, v: Vector3<f32>)[src]
Performs the += operation.
impl SubAssign<Vector3<f32>> for Plane[src]
fn sub_assign(&mut self, v: Vector3<f32>)[src]
Performs the -= operation.
impl Shape for Plane[src]
fn center(&self) -> Point3<f32>[src]
Conceptually, it's hard to consider any point of a plane the "center".
fn set_pos(&mut self, p: Point3<f32>)[src]
Sets the center of the shape to p.
impl Collider<Contains, Point3<f32>> for Plane[src]
fn check_collision(&self, p: &Point3<f32>) -> Option<Contains>[src]
Returns the first collision found if any exists.
fn collide<F: FnMut(CollisionType)>(&self, other: &T, callback: F) -> bool[src]
Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more
impl Collider<Intersection, Ray> for Plane[src]
fn collide<F: FnMut(Intersection)>(&self, r: &Ray, callback: F) -> bool[src]
Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more
fn check_collision(&self, other: &T) -> Option<CollisionType>[src]
Returns the first collision found if any exists.
impl Collider<Contact, Moving<Sphere>> for Plane[src]
fn collide<F: FnMut(Contact)>(
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool[src]
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool
Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more
fn check_collision(&self, other: &T) -> Option<CollisionType>[src]
Returns the first collision found if any exists.
impl Collider<Contact, Moving<Capsule>> for Plane[src]
fn collide<F: FnMut(Contact)>(
&self,
capsule: &Moving<Capsule>,
callback: F
) -> bool[src]
&self,
capsule: &Moving<Capsule>,
callback: F
) -> bool
Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more
fn check_collision(&self, other: &T) -> Option<CollisionType>[src]
Returns the first collision found if any exists.