public void update ( final Ray3DFloat ray ) { final Point3D origin = VecToPoint ( ray . getOrigin ( ) ) ; final Point3D direction = VecToPoint ( ray . getDirection ( ) ) ; final Point3D end = origin . add ( direction . normalize ( ) . multiply ( rayLength ) ) ; super . setStartEndPoints ( origin , end ) ; }
Updates the ray orientation and position to the specified data .