Vector2D function ( ) { final float loc0 = getMagnitude ( ) ; if ( loc0 == 0 ) return X_UNIT_VECTOR ; return divide ( loc0 ) ; }
the unit vector derived from this vector , or an arbitrary unit vector if this is the zero vector concode_field_sep Vector2D X_UNIT_VECTOR concode_elem_sep float x concode_elem_sep Vector2D ZERO_VECTOR concode_elem_sep Vector2D X_NEG_UNIT_VECTOR concode_elem_sep float y concode_elem_sep Vector2D Y_NEG_UNIT_VECTOR concode_elem_sep float THREEHALFPI concode_elem_sep float TWOPI concode_elem_sep Vector2D Y_UNIT_VECTOR concode_elem_sep float HALFPI concode_field_sep Vector2D add concode_elem_sep Vector2D rotate concode_elem_sep Vector2D subtract concode_elem_sep float dot concode_elem_sep float cross concode_elem_sep Vector2D project concode_elem_sep void main concode_elem_sep int compareTo concode_elem_sep Vector2D fromAngle concode_elem_sep float getMagnitude concode_elem_sep float angleBetween concode_elem_sep float getX concode_elem_sep Vector2D getRandom concode_elem_sep float getY concode_elem_sep float getAngle concode_elem_sep Vector2D negate concode_elem_sep Vector2D subtractAndRotate concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep boolean equals concode_elem_sep Vector2D divide concode_elem_sep String toString concode_elem_sep Vector2D multiply concode_elem_sep Vector2D fastRotate