Flutter Impeller
shear.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter 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.
4
5
#pragma once
6
7
#include <string>
8
9
namespace
impeller
{
10
11
struct
Shear
{
12
union
{
13
struct
{
14
double
xy
= 0.0;
15
double
xz
= 0.0;
16
double
yz
= 0.0;
17
};
18
double
e
[3];
19
};
20
21
Shear
() {}
22
23
Shear
(
double
xy
,
double
xz
,
double
yz
) :
xy
(
xy
),
xz
(
xz
),
yz
(
yz
) {}
24
25
bool
operator==
(
const
Shear
& o)
const
{
26
return
xy
== o.
xy
&&
xz
== o.
xz
&&
yz
== o.
yz
;
27
}
28
29
bool
operator!=
(
const
Shear
& o)
const
{
return
!(*
this
== o); }
30
};
31
32
}
// namespace impeller
impeller::Shear::Shear
Shear(double xy, double xz, double yz)
Definition:
shear.h:23
impeller::Shear::yz
double yz
Definition:
shear.h:16
impeller::Shear::Shear
Shear()
Definition:
shear.h:21
impeller::Shear::e
double e[3]
Definition:
shear.h:18
impeller::Shear::xz
double xz
Definition:
shear.h:15
impeller::Shear::xy
double xy
Definition:
shear.h:14
impeller::Shear::operator!=
bool operator!=(const Shear &o) const
Definition:
shear.h:29
impeller::Shear
Definition:
shear.h:11
impeller
Definition:
aiks_context.cc:10
impeller::Shear::operator==
bool operator==(const Shear &o) const
Definition:
shear.h:25
impeller
geometry
shear.h
Generated by
1.8.17