Class XModifier

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

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

    • XModifier Link icon

      public XModifier()
      Constructor.
    • XModifier Link icon

      public XModifier(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