point2d is a struct containing two double vars x and y.
Projectile::Projectile(Point2D p1, double x1, double y1){
: xVel(x1), yVel(x1), pos.x(p1.x), pos.y(p1.y) { }
}
Gives an error message saying expected expression at the : Any ideas, not a matter of data type because all are double?