added getPointByIndex(), rebilded addPoint(), applyTransformMatrix()