DistortedPipeShape

public class DistortedPipeShape extends DistortedCylinderShape

Class DistortedPipeShape. Provides distortedpipeshape functionality for the Hytale server.

java.lang.Object > DistortedCylinderShape > DistortedPipeShape

Field Summary

compensation

final double compensation

Field compensation.

scale

final double scale

Field scale.

maxWidth

final double maxWidth

Field maxWidth.

maxHeight

final double maxHeight

Field maxHeight.

Method Detail

DistortedPipeShape

public public DistortedPipeShape (@Nonnull final Vector3d o, @Nonnull final Vector3d v, final double startWidth, final double startHeight, final double midWidth, final double midHeight, final double endWidth, final double endHeight, final double maxWidth, final double maxHeight, final double compensation, final GeneralNoise.InterpolationFunction interpolation)

Method DistortedPipeShape.

Parameters:
@Nonnull final Vector3d o
@Nonnull final Vector3d v
final double startWidth
final double startHeight
final double midWidth
final double midHeight
final double endWidth
final double endHeight
final double maxWidth
final double maxHeight
final double compensation
final GeneralNoise.InterpolationFunction interpolation

getWidthAt

public double getWidthAt (final double t)

Method getWidthAt.

Parameters:
final double t

getHeightAt

public double getHeightAt (final double t)

Method getHeightAt.

Parameters:
final double t

isValidProjection

public boolean isValidProjection (final double t)

Method isValidProjection.

Parameters:
final double t

toString

public String toString ()

Method toString.

create

public DistortedShape create (@Nonnull final Vector3d origin, @Nonnull final Vector3d direction, final double length, final double startWidth, double startHeight, final double midWidth, double midHeight, final double endWidth, double endHeight, final GeneralNoise.InterpolationFunction interpolation)

Method create.

Parameters:
@Nonnull final Vector3d origin
@Nonnull final Vector3d direction
final double length
final double startWidth
double startHeight
final double midWidth
double midHeight
final double endWidth
double endHeight
final GeneralNoise.InterpolationFunction interpolation