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 Vector3do@Nonnull final Vector3dvfinal doublestartWidthfinal doublestartHeightfinal doublemidWidthfinal doublemidHeightfinal doubleendWidthfinal doubleendHeightfinal doublemaxWidthfinal doublemaxHeightfinal doublecompensationfinal GeneralNoise.InterpolationFunctioninterpolation
getWidthAt
public
double
getWidthAt
(final double t)
Method getWidthAt.
- Parameters:
final doublet
getHeightAt
public
double
getHeightAt
(final double t)
Method getHeightAt.
- Parameters:
final doublet
isValidProjection
public
boolean
isValidProjection
(final double t)
Method isValidProjection.
- Parameters:
final doublet
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 Vector3dorigin@Nonnull final Vector3ddirectionfinal doublelengthfinal doublestartWidthdoublestartHeightfinal doublemidWidthdoublemidHeightfinal doubleendWidthdoubleendHeightfinal GeneralNoise.InterpolationFunctioninterpolation