Class Turtle

All Implemented Interfaces:
Serializable, Comparable, TemporalComputedObject3D, MatrixPropertiesObject, XmlRepresentable

public class Turtle extends ParametricCurve
See Also:
  • Constructor Details

    • Turtle

      public Turtle()
  • Method Details

    • left

      public void left(double angle, double distance)
    • right

      public void right(double angle, double distance)
    • up

      public void up(double angle, double distance)
    • down

      public void down(double angle, double distance)
    • rear

      public void rear(double angle, double distance)
    • forwards

      public void forwards(double angle, double distance)
    • rotate

      public void rotate(double angleHorizLR, double angleVertDU, double angleForwardsSquiv)
    • getPosition

      public Point3D getPosition()
    • getDirection

      public Point3D getDirection()
    • clearPointsBefore

      public void clearPointsBefore()
    • declareProperties

      public void declareProperties()
      Description copied from class: Representable
      Declares the properties of the Representable class. This method clears the declaredDataStructure map and adds specific properties to it based on the object's rotation and type. If the object's rotation is not null and the object is not an instance of Point3D, a "rotation/Rotation" property is added. The "vectors/vectors" property is always added to the map.
      Specified by:
      declareProperties in interface MatrixPropertiesObject
      Overrides:
      declareProperties in class ParametricCurve
    • computeAll

      public void computeAll()