Skip to content

Conversation

dlech
Copy link
Member

@dlech dlech commented Aug 9, 2025

Add type checking to fix a crash if the arguments to cross() are not Matrix objects.

Add type checking to fix a crash if the arguments to `cross()` are not
`Matrix` objects.
@dlech dlech requested a review from laurensvalk August 9, 2025 17:25
@coveralls
Copy link

Coverage Status

coverage: 56.988% (-0.01%) from 56.998%
when pulling c3795f0 on dlech:fix-cross-crash
into 3b3c775 on pybricks:master.

@laurensvalk
Copy link
Member

Thanks for catching this.

If we're going to add a verbose error, we should probably say that arguments should be three dimensional vectors (3x1 or 1x3 Matrix), combining it with the existing check below.

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.

3 participants