net.sourceforge.plantuml.geom.kinetic
Class VectorForce

java.lang.Object
  extended by net.sourceforge.plantuml.geom.kinetic.VectorForce

public class VectorForce
extends Object


Constructor Summary
VectorForce(double x, double y)
           
VectorForce(Point2D src, Point2D dest)
           
 
Method Summary
 double getLength()
           
 double getX()
           
 double getY()
           
 double length()
           
 VectorForce multiply(double v)
           
 VectorForce negate()
           
 VectorForce normaliseTo(double newLength)
           
 VectorForce plus(VectorForce other)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VectorForce

public VectorForce(double x,
                   double y)

VectorForce

public VectorForce(Point2D src,
                   Point2D dest)
Method Detail

plus

public VectorForce plus(VectorForce other)

multiply

public VectorForce multiply(double v)

toString

public String toString()
Overrides:
toString in class Object

negate

public VectorForce negate()

length

public double length()

normaliseTo

public VectorForce normaliseTo(double newLength)

getX

public final double getX()

getY

public final double getY()

getLength

public double getLength()


Copyright © 2013. All Rights Reserved.