using System.Numerics;
using System.Runtime.InteropServices;
namespace Raylib_cs;
/// 
/// Camera2D, defines position/orientation in 2d space
/// 
[StructLayout(LayoutKind.Sequential)]
public partial struct Camera2D
{
    /// 
    /// Camera offset (displacement from target)
    /// 
    public Vector2 Offset;
    /// 
    /// Camera target (rotation and zoom origin)
    /// 
    public Vector2 Target;
    /// 
    ///  Camera rotation in degrees
    /// 
    public float Rotation;
    /// 
    /// Camera zoom (scaling), should be 1.0f by default
    /// 
    public float Zoom;
    public Camera2D(Vector2 offset, Vector2 target, float rotation, float zoom)
    {
        this.Offset = offset;
        this.Target = target;
        this.Rotation = rotation;
        this.Zoom = zoom;
    }
}