Rotation Matrix:
From: | To: |
Triangle rotation is a transformation that rotates a triangle's vertices around a specified axis (X, Y, or Z) by a given angle. This is fundamental in computer graphics, physics simulations, and geometric calculations.
The calculator uses rotation matrices:
Where:
Explanation: Each vertex is multiplied by the rotation matrix to get its new position.
Details: Rotation matrices preserve distances and angles, making them essential for rigid transformations in 3D space.
Tips: Enter triangle vertices as (x,y,z) coordinates, rotation angle in radians, and select rotation axis. Default values create a triangle in the XY plane.
Q1: What's the difference between degrees and radians?
A: Radians are the natural unit for angular measurement (2π radians = 360°). Most mathematical functions use radians.
Q2: How do I convert degrees to radians?
A: Multiply degrees by π/180 (e.g., 45° = 45 × π/180 ≈ 0.7854 radians).
Q3: What's the right-hand rule?
A: Point your thumb along the positive axis; fingers curl in the positive rotation direction.
Q4: Can I rotate around an arbitrary axis?
A: This calculator handles principal axes only. Arbitrary axis rotation requires a more complex matrix.
Q5: Why are my z-coordinates changing when rotating around x-axis?
A: X-axis rotation affects YZ plane coordinates, changing both y and z values.