|
constexpr | Vector ()=default |
| Construct a zero vector.
|
|
constexpr | Vector (const std::array< T, Rows > &data) |
| Construct vector from supplied data.
|
|
const T & | operator[] (size_t i) const |
| Index to an element in the vector.
|
|
T & | operator[] (size_t i) |
| Index to an element in the vector.
|
|
constexpr T | x () const |
| Convenience function to access the first element of the vector.
|
|
constexpr T | y () const |
| Convenience function to access the second element of the vector.
|
|
constexpr T | z () const |
| Convenience function to access the third element of the vector.
|
|
constexpr Vector< T, Rows > | operator- () const |
| Negate a Vector by negating both all of its coordinates.
|
|
constexpr Vector< T, Rows > | operator- (const Vector< T, Rows > &other) const |
| Subtract one vector from another.
|
|
constexpr Vector< T, Rows > | operator+ (const Vector< T, Rows > &other) const |
| Add two vectors together.
|
|
constexpr T | operator* (const Vector< T, Rows > &other) const |
| Compute the dot product.
|
|
constexpr Vector< T, Rows > | operator* (T factor) const |
| Multiply the vector by a scalar.
|
|
constexpr Vector< T, Rows > | operator/ (T factor) const |
| Divide the vector by a scalar.
|
|
constexpr double | length2 () const |
| Get the squared length of the vector.
|
|
constexpr double | length () const |
| Get the length of the vector.
|
|
template<typename T, unsigned int Rows>
class libcamera::ipa::Vector< T, Rows >
Vector class.
- Template Parameters
-
T | Type of numerical values to be stored in the vector |
Rows | Number of dimension of the vector (= number of elements) |