PlaneDensity

public class PlaneDensity extends Density

Class PlaneDensity. Provides planedensity functionality for the Hytale server.

java.lang.Object > Density > PlaneDensity

Field Summary

nearestPoint

final Vector3d nearestPoint

Field nearestPoint.

position

final Vector3d position

Field position.

p0

final Vector3d p0

Field p0.

pos

final Vector3d pos

Field pos.

vectorFromPlane

final Vector3d vectorFromPlane

Field vectorFromPlane.

Method Detail

PlaneDensity

public public PlaneDensity (@Nonnull final Double2DoubleFunction distanceCurve, @Nonnull final Vector3d planeNormal, final boolean isAnchored)

Method PlaneDensity.

Parameters:
@Nonnull final Double2DoubleFunction distanceCurve
@Nonnull final Vector3d planeNormal
final boolean isAnchored

process

public double process (@Nonnull final Context context)

Method process.

Parameters:
@Nonnull final Context context

processAnchored

private double processAnchored (final double x, final double y, final double z, @Nullable final Context context)

Method processAnchored.

Parameters:
final double x
final double y
final double z
@Nullable final Context context