chromium/ui/gfx/geometry/mojom/geometry.mojom

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module gfx.mojom;

[Stable]
struct Point {
  int32 x;
  int32 y;
};

[Stable]
struct PointF {
  float x;
  float y;
};

struct Point3F {
  float x;
  float y;
  float z;
};

[Stable]
struct Size {
  int32 width;
  int32 height;
};

struct SizeF {
  float width;
  float height;
};

[Stable]
struct Rect {
  int32 x;
  int32 y;
  int32 width;
  int32 height;
};

[Stable]
struct RectF {
  float x;
  float y;
  float width;
  float height;
};

[Stable]
struct Insets {
  int32 top;
  int32 left;
  int32 bottom;
  int32 right;
};

struct InsetsF {
  float top;
  float left;
  float bottom;
  float right;
};

struct Vector2d {
  int32 x;
  int32 y;
};

struct Vector2dF {
  float x;
  float y;
};

struct Vector3dF {
  float x;
  float y;
  float z;
};

struct Quaternion {
  double x;
  double y;
  double z;
  double w;
};

struct QuadF {
  PointF p1;
  PointF p2;
  PointF p3;
  PointF p4;
};