#include <vector.h>
Public Member Functions | |
| constexpr | Vector4 () |
| constexpr | Vector4 (const Color &c) |
| constexpr | Vector4 (Scalar x, Scalar y, Scalar z, Scalar w) |
| constexpr | Vector4 (const Vector3 &v) |
| constexpr | Vector4 (const Point &p) |
| constexpr | Vector4 (std::array< Scalar, 4 > values) |
| bool | IsFinite () const |
| Vector4 | Normalize () const |
| constexpr bool | operator== (const Vector4 &v) const |
| constexpr bool | operator!= (const Vector4 &v) const |
| constexpr Vector4 | operator+ (const Vector4 &v) const |
| constexpr Vector4 | operator- (const Vector4 &v) const |
| constexpr Vector4 | operator* (Scalar f) const |
| constexpr Vector4 | operator* (const Vector4 &v) const |
| constexpr Vector4 | Min (const Vector4 &p) const |
| constexpr Vector4 | Max (const Vector4 &p) const |
| Vector4 | Floor () const |
| Vector4 | Ceil () const |
| Vector4 | Round () const |
| constexpr Vector4 | Lerp (const Vector4 &v, Scalar t) const |
| constexpr Vector2 | xy () const |
| std::string | ToString () const |
Public Attributes | |
| union { | |
| struct { | |
| Scalar x = 0.0f | |
| Scalar y = 0.0f | |
| Scalar z = 0.0f | |
| Scalar w = 1.0f | |
| } | |
| Scalar e [4] | |
| }; | |
|
inlineconstexpr |
Definition at line 243 of file vector.h.
Referenced by Normalize(), operator*(), operator+(), and operator-().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
Definition at line 314 of file vector.h.
Referenced by impeller::testing::TEST().
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
| std::string impeller::Vector4::ToString | ( | ) | const |
|
inlineconstexpr |
| union { ... } |
| Scalar impeller::Vector4::e[4] |
Definition at line 240 of file vector.h.
Referenced by impeller::Matrix::Decompose(), and impeller::Matrix::Matrix().
| Scalar impeller::Vector4::w = 1.0f |
Definition at line 238 of file vector.h.
Referenced by Ceil(), Floor(), IsFinite(), Max(), Min(), Normalize(), operator!=(), impeller::Matrix::operator*(), operator*(), operator+(), operator-(), std::operator<<(), operator==(), Round(), impeller::testing::TEST(), ToString(), impeller::Matrix::TransformDirection(), and Vector4Near().
| Scalar impeller::Vector4::x = 0.0f |
Definition at line 235 of file vector.h.
Referenced by Ceil(), Floor(), IsFinite(), impeller::Matrix::MakeRotation(), Max(), Min(), Normalize(), operator!=(), impeller::Matrix::operator*(), operator*(), operator+(), operator-(), std::operator<<(), operator==(), Round(), impeller::testing::TEST(), 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(), IsFinite(), impeller::Matrix::MakeRotation(), Max(), Min(), Normalize(), operator!=(), impeller::Matrix::operator*(), operator*(), operator+(), operator-(), std::operator<<(), operator==(), Round(), impeller::testing::TEST(), 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(), IsFinite(), impeller::Matrix::MakeRotation(), Max(), Min(), Normalize(), operator!=(), impeller::Matrix::operator*(), operator*(), operator+(), operator-(), std::operator<<(), operator==(), Round(), impeller::testing::TEST(), ToString(), impeller::Matrix::TransformDirection(), and Vector4Near().