As to right of way, you'll have to look at several factors:

1) What directions were both of you headed? In general, one boat overtaking another needs to yield the ROW to the boat in front.

2) Based on the man over sail over power rule, a power boat should be yielding the ROW to a sailboat.

3) Channel designations. Power boats in a designated power channel will have the right of way over a sailboat.

4) Size of boats. Larger boats are given the ROW in certain cases simply because they don't have the ease of movement to change course.

Even with all of this in mind, the overall rule is the General Responsibility Rule...all skippers need to avoid collisions regardless. Argue the rule after the fact.

Even if you have the ROW, it's often far easier, safer and simply nicer to simply yield it and continue onward.

Sheldon