Uses of Class
org.anchoranalysis.spatial.scale.ScaleFactor
| Package | Description |
|---|---|
| org.anchoranalysis.spatial.box |
Axis-aligned bounding-boxes and related operations.
|
| org.anchoranalysis.spatial.scale |
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 ScaleFactor Modifier and Type Method Description BoundingBoxBoundingBox. scale(ScaleFactor scaleFactor)Scales the bounding-box, both the corner-point and the extent.BoundingBoxBoundingBox. scale(ScaleFactor scaleFactor, Extent extentToAssign)Scales the bounding-box corner-point, and assigns a new extent.BoundingBoxBoundingBox. scaleClampTo(ScaleFactor scaleFactor, Extent clampTo)Scales the bounding-box, both the corner-point and the extent - ensuring it remains inside a containing-extent.ExtentExtent. 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 ScaleFactor Modifier and Type Method Description ScaleFactorScaleFactorInt. asScaleFactor()Converts to aScaleFactorthat accepts floating-point values.ScaleFactorScaleFactor. 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 ScaleFactor Modifier and Type Method Description static 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.