Class Vector

java.lang.Object
com.administracion.Vector

public class Vector
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    float x  
    float y  
  • Constructor Summary

    Constructors 
    Constructor Description
    Vector​(float x, float y)  
  • Method Summary

    Modifier and Type Method Description
    static Vector direction​(float x, float y)  
    static float distance​(Vector first, Vector second)  
    static float length​(float x, float y)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • x

      public float x
    • y

      public float y
  • Constructor Details

    • Vector

      public Vector​(float x, float y)
  • Method Details