[src]

Struct ncollide2df64::geom::Plane

pub struct Plane {
    normal: V,
}

Implicit description of a plane.

Fields

normal

The plane normal.

Methods

impl Plane

fn new(normal: V) -> Plane

Builds a new plane from its center and its normal.

unsafe fn new_normalized(normal: V) -> Plane

Builds a new plane from its center and its normal.

impl Plane

fn normal(&self) -> V

The plane normal.

Trait Implementations

impl HasAABB for Plane

fn aabb(&self, _: &M) -> AABB

The object’s AABB.

impl Eq for Plane

Automatically derived.

fn eq(&self, __arg_0: &Plane) -> bool

fn ne(&self, __arg_0: &Plane) -> bool

impl ToStr for Plane

Automatically derived.

fn to_str(&self) -> ~str

impl Clone for Plane

Automatically derived.

fn clone(&self) -> Plane

impl<__E: Encoder> Encodable<__E> for Plane

Automatically derived.

fn encode(&self, __arg_0: &mut __E)

impl<__D: Decoder> Decodable<__D> for Plane

Automatically derived.

fn decode(__arg_0: &mut __D) -> Plane

impl RayCast for Plane

fn toi_with_ray(&self, ray: &Ray) -> Option<N>

Computes the time of impact between this geometry and a ray

fn toi_and_normal_with_ray(&self, ray: &Ray) -> Option<(N, V)>

Computes the intersection point between this geometry and a ray.

fn intersects_ray(&self, ray: &Ray) -> bool

Tests whether a ray intersects this geometry.

fn toi_with_transform_and_ray(&self, m: &M, ray: &Ray) -> Option<N>

Computes the time of impact between this transform geometry and a ray.

fn toi_and_normal_with_transform_and_ray(&self, m: &M, ray: &Ray) -> Option<(N, V)>

Computes the time of impact, and normal between this transformed geometry and a ray.

fn intersects_with_transform_and_ray(&self, m: &M, ray: &Ray) -> bool

Tests whether a ray intersects this transformed geometry.

impl Volumetric for Plane

fn mass_properties(&self, _: &N) -> (N, V, II)

Given a density, this computes the mass, center of mass, and inertia tensor of this object.