Class ZModifier

java.lang.Object
eu.mihosoft.vrl.v3d.ZModifier
All Implemented Interfaces:
WeightFunction

public class ZModifier extends Object implements WeightFunction
Modifies along z axis.
Author:
Michael Hoffer <info@michaelhoffer.de>
  • Constructor Details Link icon

    • ZModifier Link icon

      public ZModifier()
      Constructor.
    • ZModifier Link icon

      public ZModifier(boolean centered)
      Constructor.
      Parameters:
      centered - defines whether to center origin at the csg location
  • Method Details Link icon

    • eval Link icon

      public double eval(Vector3d pos, CSG csg)
      Description copied from interface: WeightFunction
      Evaluates the function at the specified location.
      Specified by:
      eval in interface WeightFunction
      Parameters:
      pos - location
      csg - csg
      Returns:
      the weight of the specified position