code: void applyTransformation(Transformation2D transform) {
  		m_vertices_mp.applyTransformation(transform);
  		if (m_segments != null) {
  			for (int i = 0, n = m_segments.size(); i < n; i++) {
  				if (m_segments.get(i) != null) {
  					m_segments.get(i).applyTransformation(transform);
  				}
  			}
  		}
  	}
docs: Applies affine transformation