transform this vector to an unit vector by making it length 1 . concode_field_sep double x concode_elem_sep double y concode_elem_sep double z concode_field_sep Vector add concode_elem_sep Vector add concode_elem_sep Vector add concode_elem_sep Vector sub concode_elem_sep Vector sub concode_elem_sep Vector sub concode_elem_sep Vector rotate concode_elem_sep void setY concode_elem_sep Vector mult concode_elem_sep void setX concode_elem_sep Vector set concode_elem_sep Vector set concode_elem_sep double dot concode_elem_sep double dot concode_elem_sep Vector cross concode_elem_sep Vector cross concode_elem_sep double dist concode_elem_sep double dist concode_elem_sep void setZ concode_elem_sep Vector div concode_elem_sep double angleBetween concode_elem_sep double mag concode_elem_sep double getX concode_elem_sep Vector setMag concode_elem_sep double getAngle2D concode_elem_sep double getY concode_elem_sep double getZ concode_elem_sep Vector linInterp concode_elem_sep Vector copy
Vector function ( ) { double loc0 = this . mag ( ) ; if ( loc0 != 0 && loc0 != 1 ) { this . div ( loc0 ) ; } return this ; }