Contents
- Description
- Field Summary
- Method Summary
- Field Details
- Method Details
- create(Vector3d, Vector3d, double, double, double, double, double, double, double, GeneralNoise.InterpolationFunction)
- create(Vector3d, Vector3d, double, double, double, double, double, double, double)
- create(Vector3d, Vector3d, double, double, double, double, double, GeneralNoise.InterpolationFunction)
- create(Vector3d, Vector3d, double, double, double, double, double)
- create(Vector3d, Vector3d, double, double, double, GeneralNoise.InterpolationFunction)
Interface DistortedShape.Factory
- All Known Implementing Classes:
DistortedCylinderShape.Factory, DistortedEllipsoidShape.Factory, DistortedPipeShape.Factory
- Enclosing interface:
DistortedShape
public static interface DistortedShape.Factory
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault DistortedShapecreate(org.joml.Vector3d origin, org.joml.Vector3d direction, double length, double startWidth, double startHeight, double endWidth, double endHeight) default DistortedShapecreate(org.joml.Vector3d origin, org.joml.Vector3d direction, double length, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight) create(org.joml.Vector3d origin, org.joml.Vector3d direction, double length, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight, GeneralNoise.InterpolationFunction interpolation) Creates new instances of a DistortedShape implementation.default DistortedShapecreate(org.joml.Vector3d origin, org.joml.Vector3d direction, double length, double startWidth, double startHeight, double endWidth, double endHeight, GeneralNoise.InterpolationFunction interpolation) default DistortedShapecreate(org.joml.Vector3d origin, org.joml.Vector3d direction, double length, double width, double height, GeneralNoise.InterpolationFunction interpolation)
-
Field Details
-
DEFAULT_INTERPOLATION
-
-
Method Details
-
create
DistortedShape create(org.joml.Vector3d origin, org.joml.Vector3d direction, double length, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight, GeneralNoise.InterpolationFunction interpolation) Creates new instances of a DistortedShape implementation.The interpretation of the parameters is determined by the implementing shape. For example, a symmetrical shape such as a sphere might not make use of the direction, and might only use one of the width/height pairs to describe its dimensions. A cylinder on the other hand could make use of all parameters to describe its characteristics.
- Parameters:
origin- the origin or center of the shapedirection- the direction of the shapestartWidth- the starting width of the shapestartHeight- the starting height of the shapemidWidth- the width half-way along the length of the shapemidHeight- the height half-way along the length of the shapeendWidth- the width at the end of the shapeendHeight- the height at the end of the shapeinterpolation- the interpolation function to be used when calculating the shape- Returns:
- a new instance of a given DistortedShape implementation
-
create
default DistortedShape create(org.joml.Vector3d origin, org.joml.Vector3d direction, double length, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight) -
create
default DistortedShape create(org.joml.Vector3d origin, org.joml.Vector3d direction, double length, double startWidth, double startHeight, double endWidth, double endHeight, GeneralNoise.InterpolationFunction interpolation) -
create
default DistortedShape create(org.joml.Vector3d origin, org.joml.Vector3d direction, double length, double startWidth, double startHeight, double endWidth, double endHeight) -
create
default DistortedShape create(org.joml.Vector3d origin, org.joml.Vector3d direction, double length, double width, double height, GeneralNoise.InterpolationFunction interpolation)
-