Interface DistortedShape.Factory

All Known Implementing Classes:
DistortedCylinderShape.Factory, DistortedEllipsoidShape.Factory, DistortedPipeShape.Factory
Enclosing interface:
DistortedShape

public static interface DistortedShape.Factory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(org.joml.Vector3d origin, org.joml.Vector3d direction, double length, double startWidth, double startHeight, 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)
     
    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.
    create(org.joml.Vector3d origin, org.joml.Vector3d direction, double length, double startWidth, double startHeight, double endWidth, double endHeight, GeneralNoise.InterpolationFunction interpolation)
     
    create(org.joml.Vector3d origin, org.joml.Vector3d direction, double length, double width, double height, GeneralNoise.InterpolationFunction interpolation)
     
  • Field Details

  • 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 shape
      direction - the direction of the shape
      startWidth - the starting width of the shape
      startHeight - the starting height of the shape
      midWidth - the width half-way along the length of the shape
      midHeight - the height half-way along the length of the shape
      endWidth - the width at the end of the shape
      endHeight - the height at the end of the shape
      interpolation - 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)