1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 #ifndef WebFloatPoint3D_h
7 #define WebFloatPoint3D_h
12 #include "platform/geometry/FloatPoint3D.h"
14 #include <ui/gfx/geometry/point3_f.h>
19 struct WebFloatPoint3D
{
31 WebFloatPoint3D(float x
, float y
, float z
)
39 WebFloatPoint3D(const FloatPoint3D
& p
)
46 WebFloatPoint3D
& operator=(const FloatPoint3D
& p
)
54 operator FloatPoint3D() const
56 return FloatPoint3D(x
, y
, z
);
59 WebFloatPoint3D(const gfx::Point3F
& p
)
66 WebFloatPoint3D
& operator=(const gfx::Point3F
& p
)
73 operator gfx::Point3F() const
75 return gfx::Point3F(x
, y
, z
);
81 inline bool operator==(const WebFloatPoint3D
& a
, const WebFloatPoint3D
& b
)
83 return a
.x
== b
.x
&& a
.y
== b
.y
&& a
.z
== b
.z
;
86 inline bool operator!=(const WebFloatPoint3D
& a
, const WebFloatPoint3D
& b
)