Package org.anchoranalysis.spatial.point
Class PointConverter
Object
org.anchoranalysis.spatial.point.PointConverter
public class PointConverter extends Object
Conversion utilities between points with different types and dimensionalities.
- Author:
- Owen Feehan
-
Method Summary
-
Method Details
-
intFromDoubleFloor
- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
intFromDoubleFloor
- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
intFromDoubleCeil
- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
convertTo3i
- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
convertTo3i
- Parameters:
point- the point to convert.z- the value for the Z-axis component in the newly created point.- Returns:
- the newly-created converted point.
-
convertTo3d
- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
doubleFromFloat
- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
double3DFromFloat
- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
doubleFromFloat
- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
doubleFromInt
- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
doubleFromInt
Convert aReadableTuple3ito aPoint3d.- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
floatFromInt
- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
floatFromDouble
- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
floatFromDouble
- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
floatFromInt
Convert aReadableTuple3ito aPoint3f.- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
floatFromIntDropZ
Creates aReadableTuple3ito aPoint3f, preserving X- and Y-components but set setting the Z-component to be0.- Parameters:
point- the point to convert.- Returns:
- the newly-created converted point.
-
intFromFloat
- Parameters:
point- the point to convert.round- if true, each component's value is rounded to the nearest integer, otherwise the ceiling operation is used.- Returns:
- the newly-created converted point.
-
intFromDouble
- Parameters:
point- the point to convert.round- if true, each component's value is rounded to the nearest integer, otherwise the ceiling operation is used.- Returns:
- the newly-created converted point.
-
convert3iTo3f
- Parameters:
points- the list of points to convert.- Returns:
- a newly-created list of converted points.
-
convert3dTo3f
- Parameters:
points- the list of points to convert.- Returns:
- a newly-created list of converted points.
-
convert2iTo3f
- Parameters:
points- the list of points to convert.- Returns:
- a newly-created list of converted points.
-
convert2iTo3d
- Parameters:
points- the list of points to convert.- Returns:
- a newly-created list of converted points.
-
convert3fTo3d
- Parameters:
points- the list of points to convert.- Returns:
- a newly-created list of converted points.
-
convert3i
- Parameters:
points- the list of points to convert.round- if true, each component's value is rounded to the nearest integer, otherwise the ceiling operation is used.- Returns:
- a newly-created list of converted points.
-
convert3i
- Parameters:
points- the list of points to convert.- Returns:
- a newly-created list of converted points.
-