Skip to content

Conversation

@patxibocos
Copy link

This PR adds a new Triangle (equilateral) shape.

}
Shape.Triangle -> {
val triangleWidth = particle.width
val triangleHeight = triangleWidth * sqrt(3.0) / 2
Copy link
Author

Choose a reason for hiding this comment

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

Height of an equilateral triangle is width * √(3) / 2

@patxibocos
Copy link
Author

What do you think about this @DanielMartinus? :)

@patxibocos patxibocos force-pushed the triangle-shape-support branch from 7789be2 to e8eb3a9 Compare April 30, 2025 10:23
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.

1 participant