Skip to content

fix: correct Vector3d division and subtraction operations#6311

Merged
westnordost merged 1 commit into
streetcomplete:masterfrom
RubenKelevra:fix_vector3d
Jun 6, 2025
Merged

fix: correct Vector3d division and subtraction operations#6311
westnordost merged 1 commit into
streetcomplete:masterfrom
RubenKelevra:fix_vector3d

Conversation

@RubenKelevra

Copy link
Copy Markdown
Contributor
  • Fix div operator to divide each component (x/v, y/v, z/v) instead of (x/v, x/v, x/v)
  • Fix minus operator to use o.z for z component instead of o.y
  • Add Vector3dTest to verify corrected operations

- Fix div operator to divide each component (x/v, y/v, z/v) instead of (x/v, x/v, x/v)
- Fix minus operator to use o.z for z component instead of o.y
- Add Vector3dTest to verify corrected operations

@westnordost westnordost left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh man, what a stupid mistake! Thank you again! How on earth do you find these things?

@westnordost westnordost merged commit 5e2caf1 into streetcomplete:master Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants