Can a transformation be applied to drawLines() or drawLineArrays()?

When I draw lines using drawLines() or drawLineArrays(), is it possible to apply a transformation? Or do I have to transform each point myself using some transformation matrix math?

Transform them yourself, those always render in the world space.