using System.Runtime.InteropServices;
namespace GlitchyEngine.Math;
///
/// Represents a rotation around an axis by a specific angle.
///
[StructLayout(LayoutKind.Sequential, Pack=1)]
public struct RotationAxisAngle
{
///
/// The axis around which the rotation is applied.
///
public float3 Axis;
///
/// The angle in radians around the .
///
public float Angle;
///
/// Creates a new instance of an axis angle rotation.
///
/// The axis.
/// The angle in radians.
public RotationAxisAngle(float3 axis, float angle)
{
Axis = axis;
Angle = angle;
}
}