Should use `w.dot(p.x)`, following Spark Code Style Guide.