Struct ncollide3d::shape::Cylinder [−][src]
pub struct Cylinder<N> { pub half_height: N, pub radius: N, }
SupportMap description of a cylinder shape with its principal axis aligned with the y
axis.
Fields
half_height: N
The half-height of the cylinder.
radius: N
The radius fo the cylinder.
Implementations
impl<N: RealField> Cylinder<N>
[src]
impl<N: RealField> Cylinder<N>
[src]pub fn new(half_height: N, radius: N) -> Cylinder<N>
[src]
Creates a new cylinder.
Arguments:
half_height
- the half length of the cylinder along they
axis.radius
- the length of the cylinder along all other axis.
pub fn half_height(&self) -> N
[src]
👎 Deprecated:
use the self.half_height
field directly.
The cylinder half length along the y
axis.
pub fn radius(&self) -> N
[src]
👎 Deprecated:
use the self.radius
field directly.
The radius of the cylinder along all but the y
axis.
Trait Implementations
impl<N: RealField> HasBoundingVolume<N, AABB<N>> for Cylinder<N>
[src]
impl<N: RealField> HasBoundingVolume<N, AABB<N>> for Cylinder<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> AABB<N>
[src]
fn local_bounding_volume(&self) -> AABB<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Cylinder<N>
[src]
impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Cylinder<N>
[src]fn bounding_volume(&self, m: &Isometry<N>) -> BoundingSphere<N>
[src]
fn local_bounding_volume(&self) -> BoundingSphere<N>
[src]
impl<N: RealField> PointQuery<N> for Cylinder<N>
[src]
impl<N: RealField> PointQuery<N> for Cylinder<N>
[src]fn project_point(
&self,
m: &Isometry<N>,
point: &Point<N>,
solid: bool
) -> PointProjection<N>
[src]
&self,
m: &Isometry<N>,
point: &Point<N>,
solid: bool
) -> PointProjection<N>
fn project_point_with_feature(
&self,
m: &Isometry<N>,
point: &Point<N>
) -> (PointProjection<N>, FeatureId)
[src]
&self,
m: &Isometry<N>,
point: &Point<N>
) -> (PointProjection<N>, FeatureId)
fn distance_to_point(&self, m: &Isometry<N>, pt: &Point<N>, solid: bool) -> N
[src]
fn contains_point(&self, m: &Isometry<N>, pt: &Point<N>) -> bool
[src]
impl<N: RealField> RayCast<N> for Cylinder<N>
[src]
impl<N: RealField> RayCast<N> for Cylinder<N>
[src]fn toi_and_normal_with_ray(
&self,
m: &Isometry<N>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<RayIntersection<N>>
[src]
&self,
m: &Isometry<N>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<RayIntersection<N>>
fn toi_with_ray(
&self,
m: &Isometry<N>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<N>
[src]
&self,
m: &Isometry<N>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<N>
fn toi_and_normal_and_uv_with_ray(
&self,
m: &Isometry<N>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<RayIntersection<N>>
[src]
&self,
m: &Isometry<N>,
ray: &Ray<N>,
max_toi: N,
solid: bool
) -> Option<RayIntersection<N>>
fn intersects_ray(&self, m: &Isometry<N>, ray: &Ray<N>, max_toi: N) -> bool
[src]
impl<N: RealField> SupportMap<N> for Cylinder<N>
[src]
impl<N: RealField> SupportMap<N> for Cylinder<N>
[src]fn local_support_point(&self, dir: &Vector<N>) -> Point<N>
[src]
fn local_support_point_toward(&self, dir: &Unit<Vector<N>>) -> Point<N>
[src]
fn support_point(&self, transform: &Isometry<N>, dir: &Vector<N>) -> Point<N>
[src]
fn support_point_toward(
&self,
transform: &Isometry<N>,
dir: &Unit<Vector<N>>
) -> Point<N>
[src]
&self,
transform: &Isometry<N>,
dir: &Unit<Vector<N>>
) -> Point<N>
impl<N: RealField> ToTriMesh<N> for Cylinder<N>
[src]
impl<N: RealField> ToTriMesh<N> for Cylinder<N>
[src]type DiscretizationParameter = u32
fn to_trimesh(&self, nsubdiv: u32) -> TriMesh<N>
[src]
impl<N: Copy> Copy for Cylinder<N>
[src]
impl<N> StructuralPartialEq for Cylinder<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for Cylinder<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for Cylinder<N> where
N: Send,
N: Send,
impl<N> Sync for Cylinder<N> where
N: Sync,
N: Sync,
impl<N> Unpin for Cylinder<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for Cylinder<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,