[][src]Trait rust_3d::IsScalable

pub trait IsScalable {
    fn scale(&mut self, factor: Positive);
}

IsScalable trait used for types that can have their size scaled by a factor

Required methods

fn scale(&mut self, factor: Positive)

Should scale by the given factor. 0.5 -> half size, 2.0 double the size without moving the position/center

Loading content...

Implementors

impl IsScalable for BoundingBox2D[src]

impl IsScalable for BoundingBox3D[src]

impl IsScalable for Box2D[src]

impl IsScalable for Box3D[src]

impl IsScalable for Circle[src]

impl IsScalable for FilterBox2D[src]

impl IsScalable for FilterBox3D[src]

impl IsScalable for FilterCircle[src]

impl IsScalable for FilterSphere[src]

impl IsScalable for LineSegment2D[src]

impl IsScalable for LineSegment3D[src]

impl IsScalable for Sphere[src]

impl<M, T, IC> IsScalable for SearchableMesh<M, T, IC> where
    M: IsMesh<T, Face3> + IsScalable,
    IC: IsIndexContainer
[src]

impl<P> IsScalable for PointCloud2D<P> where
    P: IsEditable2D
[src]

impl<P> IsScalable for PointCloud3D<P> where
    P: IsEditable3D
[src]

impl<P> IsScalable for Polygon2D<P> where
    P: IsEditable2D
[src]

impl<P> IsScalable for Polygon3D<P> where
    P: IsEditable3D
[src]

impl<P, ID, IC> IsScalable for Mesh3D<P, ID, IC> where
    P: IsEditable3D,
    ID: IsDataContainer<P> + IsScalable,
    IC: IsIndexContainer
[src]

impl<S, P> IsScalable for FilterOutlier3D<S, P> where
    P: Is3D,
    S: IsSphereSearchable<P>, 
[src]

Loading content...