Uses of Class
org.anchoranalysis.spatial.scale.ScaleFactor
Packages that use ScaleFactor
Package
Description
Axis-aligned bounding-boxes and related operations.
How to much to scale an entity in Cartesian space by.
-
Uses of ScaleFactor in org.anchoranalysis.spatial.box
Methods in org.anchoranalysis.spatial.box with parameters of type ScaleFactorModifier and TypeMethodDescriptionBoundingBox.scale(ScaleFactor scaleFactor) Scales the bounding-box, both the corner-point and the extent.BoundingBox.scale(ScaleFactor scaleFactor, Extent extentToAssign) Scales the bounding-box corner-point, and assigns a new extent.BoundingBox.scaleClampTo(ScaleFactor scaleFactor, Extent clampTo) Scales the bounding-box, both the corner-point and the extent - ensuring it remains inside a containing-extent.Extent.scaleXYBy(ScaleFactor scaleFactor, boolean round) Scales the X- and Y- dimensions by a scaling-factor. -
Uses of ScaleFactor in org.anchoranalysis.spatial.scale
Methods in org.anchoranalysis.spatial.scale that return ScaleFactorModifier and TypeMethodDescriptionScaleFactorInt.asScaleFactor()Converts to aScaleFactorthat accepts floating-point values.ScaleFactor.invert()Build a new scale factor where each dimension is set to the reciprocal of its current value.static ScaleFactorRelativeScaleCalculator.relativeScale(Extent source, Extent target) Calculates a scaling factor so as to scalesourcetotarget.static ScaleFactorRelativeScaleCalculator.relativeScale(Extent source, Extent target, boolean preserveAspectRatio) static ScaleFactorRelativeScaleCalculator.relativeScalePreserveAspectRatio(Extent source, Extent target) Calculates a scaling factor so as to maximally scalesourcetotarget- while preserving the aspect ratio.Methods in org.anchoranalysis.spatial.scale with parameters of type ScaleFactorModifier and TypeMethodDescriptionstatic Point3iScaler.scale(ScaleFactor scalingFactor, Point3i point) Scales a point in XY by multiplying each dimension by its corresponding scaling-factor.static Point3iScaler.scaleCeil(ScaleFactor scalingFactor, Point3i point) Scales a point in XY by multiplying each dimension by its corresponding scaling-factor.