public void set ( float sx , float sy , float ex , float ey ) { super . pointsDirty = true ; start . set ( sx , sy ) ; end . set ( ex , ey ) ; float dx = ( ex - sx ) ; float dy = ( ey - sy ) ; vec . set ( dx , dy ) ; lenSquared = ( dx * dx ) + ( dy * dy ) ; }
Configure the line without garbage