Class Spring


  • public class Spring
    extends Object
    Author:
    Mathilde Grapin
    • Constructor Detail

      • Spring

        public Spring​(Point source,
                      Point target,
                      double length,
                      double stiffness)
      • Spring

        public Spring​(Point source,
                      Point target,
                      double length)
      • Spring

        public Spring​(Point source,
                      Point target)
    • Method Detail

      • getNode1

        public Point getNode1()
      • getNode2

        public Point getNode2()
      • getLength

        public double getLength()
      • getStiffness

        public double getStiffness()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object