https://github.com/coderbdk/triangle
An interactive triangle app to drag points, rotate, and display angles.
https://github.com/coderbdk/triangle
android geometry gesture-detection graphics jetpack-compose kotlin rotation triangle ui
Last synced: 5 months ago
JSON representation
An interactive triangle app to drag points, rotate, and display angles.
- Host: GitHub
- URL: https://github.com/coderbdk/triangle
- Owner: CoderBDK
- Created: 2025-08-05T08:51:54.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2025-08-05T08:55:50.000Z (5 months ago)
- Last Synced: 2025-08-05T10:36:16.423Z (5 months ago)
- Topics: android, geometry, gesture-detection, graphics, jetpack-compose, kotlin, rotation, triangle, ui
- Language: Kotlin
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Triangle Rotation & Angle Detection
A Jetpack Compose based Android component to draw a triangle with draggable points, enabling smooth 360° rotation and real-time calculation of interior angles.
---
## Features
- **Draggable Points:** Select and drag individual triangle points.
- **Smooth Rotation:** Rotate the triangle smoothly with drag gestures.
- **Angle Calculation:** Automatically computes and displays the interior angles of the triangle.
- **Visual Feedback:** Highlights selected points and connected edges.
- **Interactive UI:** Displays direction angles and rotation angle dynamically.
---
## Preview

---
## Usage
Add the `Triangle` Cmposable to your Compose UI hierarchy:
```kotlin
Triangle(modifier = Modifier.fillMaxSize())