#include <vector.h>
Definition at line 232 of file vector.h.
◆ Vector4() [1/6]
| constexpr impeller::Vector4::Vector4 |
( |
| ) |
|
|
inlineconstexpr |
◆ Vector4() [2/6]
| constexpr impeller::Vector4::Vector4 |
( |
const Color & |
c | ) |
|
|
inlineconstexpr |
Definition at line 245 of file vector.h.
246 :
x(c.red),
y(c.green),
z(c.blue),
w(c.alpha) {}
◆ Vector4() [3/6]
◆ Vector4() [4/6]
| constexpr impeller::Vector4::Vector4 |
( |
const Vector3 & |
v | ) |
|
|
inlineconstexpr |
Definition at line 251 of file vector.h.
251 :
x(v.x),
y(v.y),
z(v.z) {}
◆ Vector4() [5/6]
| constexpr impeller::Vector4::Vector4 |
( |
const Point & |
p | ) |
|
|
inlineconstexpr |
◆ Vector4() [6/6]
| constexpr impeller::Vector4::Vector4 |
( |
std::array< Scalar, 4 > |
values | ) |
|
|
inlineconstexpr |
Definition at line 255 of file vector.h.
256 :
x(values[0]),
y(values[1]),
z(values[2]),
w(values[3]) {}
◆ Ceil()
| constexpr Vector4 impeller::Vector4::Ceil |
( |
| ) |
const |
|
inlineconstexpr |
◆ Floor()
| constexpr Vector4 impeller::Vector4::Floor |
( |
| ) |
const |
|
inlineconstexpr |
◆ Lerp()
◆ Max()
◆ Min()
◆ Normalize()
| Vector4 impeller::Vector4::Normalize |
( |
| ) |
const |
|
inline |
◆ operator!=()
| constexpr bool impeller::Vector4::operator!= |
( |
const Vector4 & |
v | ) |
const |
|
inlineconstexpr |
Definition at line 267 of file vector.h.
268 return (
x != v.x) || (
y != v.y) || (
z != v.z) || (
w != v.w);
References w, x, y, and z.
◆ operator*() [1/2]
| constexpr Vector4 impeller::Vector4::operator* |
( |
const Vector4 & |
v | ) |
const |
|
inlineconstexpr |
◆ operator*() [2/2]
◆ operator+()
| constexpr Vector4 impeller::Vector4::operator+ |
( |
const Vector4 & |
v | ) |
const |
|
inlineconstexpr |
◆ operator-()
| constexpr Vector4 impeller::Vector4::operator- |
( |
const Vector4 & |
v | ) |
const |
|
inlineconstexpr |
◆ operator==()
| constexpr bool impeller::Vector4::operator== |
( |
const Vector4 & |
v | ) |
const |
|
inlineconstexpr |
Definition at line 263 of file vector.h.
264 return (
x == v.x) && (
y == v.y) && (
z == v.z) && (
w == v.w);
References w, x, y, and z.
◆ Round()
| constexpr Vector4 impeller::Vector4::Round |
( |
| ) |
const |
|
inlineconstexpr |
◆ ToString()
| std::string impeller::Vector4::ToString |
( |
| ) |
const |
Definition at line 16 of file vector.cc.
17 std::stringstream stream;
18 stream <<
"{" <<
x <<
", " <<
y <<
", " <<
z <<
", " <<
w <<
"}";
References w, x, y, and z.
◆ xy()
| constexpr Vector2 impeller::Vector4::xy |
( |
| ) |
const |
|
inlineconstexpr |
◆ @27
| Scalar impeller::Vector4::e[4] |
| Scalar impeller::Vector4::w = 1.0f |
Definition at line 238 of file vector.h.
Referenced by Ceil(), Floor(), Max(), Min(), Normalize(), operator!=(), operator*(), impeller::Matrix::operator*(), operator+(), operator-(), std::operator<<(), operator==(), Round(), ToString(), impeller::Matrix::TransformDirection(), and Vector4Near().
| Scalar impeller::Vector4::x = 0.0f |
Definition at line 235 of file vector.h.
Referenced by Ceil(), Floor(), impeller::Matrix::MakeRotation(), Max(), Min(), Normalize(), operator!=(), operator*(), impeller::Matrix::operator*(), operator+(), operator-(), std::operator<<(), operator==(), Round(), ToString(), impeller::Matrix::TransformDirection(), Vector4Near(), and xy().
| Scalar impeller::Vector4::y = 0.0f |
Definition at line 236 of file vector.h.
Referenced by Ceil(), Floor(), impeller::Matrix::MakeRotation(), Max(), Min(), Normalize(), operator!=(), operator*(), impeller::Matrix::operator*(), operator+(), operator-(), std::operator<<(), operator==(), Round(), ToString(), impeller::Matrix::TransformDirection(), Vector4Near(), and xy().
| Scalar impeller::Vector4::z = 0.0f |
Definition at line 237 of file vector.h.
Referenced by Ceil(), Floor(), impeller::Matrix::MakeRotation(), Max(), Min(), Normalize(), operator!=(), operator*(), impeller::Matrix::operator*(), operator+(), operator-(), std::operator<<(), operator==(), Round(), ToString(), impeller::Matrix::TransformDirection(), and Vector4Near().
The documentation for this struct was generated from the following files: