|
| | Scale (void) |
| | Default constructor initializing scale to (1, 1, 1).
|
| |
| | Scale (ScaleComponentType value) |
| | Construct by filling all components with the same ScaleComponentType value.
|
| |
| | Scale (const utility::math::Vector< ScaleComponentType, 3 > &vector) |
| | Construct from a vector.
|
| |
| | Scale (ScaleComponentType x, ScaleComponentType y, ScaleComponentType z) |
| | Construct from three ScaleComponentType values (x, y, z).
|
| |
| | Scale (std::initializer_list< ScaleComponentType > values) |
| | Construct from initializer list of three ScaleComponentType values.
|
| |
| | Scale (const std::initializer_list< ScaleComponentType > &value) |
| | Construct from a GLM vector.
|
| |
| | Scale (const Scale &other)=default |
| | Copy constructor.
|
| |
| | Scale (Scale &&other) noexcept=default |
| | Move constructor.
|
| |
| Scale & | operator= (const Scale &other)=default |
| | Copy assignment operator.
|
| |
| Scale & | operator= (Scale &&other) noexcept=default |
| | Move assignment operator.
|
| |
|
| ~Scale (void)=default |
| | Default destructor for Scale.
|
| |
| Scale & | setX (const ScaleComponentType value) noexcept |
| | Set the X component of the scale.
|
| |
| ScaleComponentType | getX (void) const noexcept |
| | Get the X component of the scale.
|
| |
| Scale & | setY (const ScaleComponentType value) noexcept |
| | Set the Y component of the scale.
|
| |
| ScaleComponentType | getY (void) const noexcept |
| | Get the Y component of the scale.
|
| |
| Scale & | setZ (const ScaleComponentType value) noexcept |
| | Set the Z component of the scale.
|
| |
| ScaleComponentType | getZ (void) const noexcept |
| | Get the Z component of the scale.
|
| |
| Scale & | scaleBy (const Scale &factor) noexcept |
| | Scale this object by another scale (component-wise multiplication).
|
| |
| Scale | scaled (const Scale &factor) const noexcept |
| | Return a scaled copy of this object (component-wise multiplication).
|
| |
| Scale & | setUniform (ScaleComponentType value) noexcept |
| | Set all scale components to the same value.
|
| |
| bool | isUniform (ScaleComponentType epsilon=ScaleComponentType { 1e-6 }) const noexcept |
| | Check whether all scale components are approximately equal.
|
| |
| bool | hasNegativeComponent (void) const noexcept |
| | Check whether any component is negative.
|
| |
| bool | operator== (const Scale &other) const noexcept |
| | Equality comparison.
|
| |
| bool | operator!= (const Scale &other) const noexcept |
| | Inequality comparison.
|
| |
| bool | operator< (const Scale &other) const noexcept |
| | Less-than comparison for ordering.
|
| |
| | Vector (void) |
| | Default constructor initializing vector values to zero.
|
| |
| | Vector (const glm::vec< VectorDimension, VectorComponentType > &v) |
| | Construct from a GLM vector.
|
| |
| | Vector (std::initializer_list< VectorComponentType > values) |
| | Construct from initializer list of float values.
|
| |
| | Vector (VectorComponentType value) |
| | Construct by filling all components with the same float value.
|
| |
| | Vector (const Vector &other)=default |
| | Copy constructor.
|
| |
| | Vector (Vector &&other) noexcept=default |
| | Move constructor.
|
| |
|
| ~Vector (void)=default |
| | Default destructor for Vector.
|
| |
| Vector & | operator= (const Vector &other)=default |
| | Copy assignment operator.
|
| |
| Vector & | operator= (Vector &&other) noexcept=default |
| | Move assignment operator.
|
| |
| Vector | operator+ (const Vector &rhs) const noexcept |
| | Vector addition.
|
| |
| Vector & | operator+= (const Vector &rhs) noexcept |
| | Vector addition assignment.
|
| |
| Vector | operator- (const Vector &rhs) const noexcept |
| | Vector subtraction.
|
| |
| Vector | operator- () const noexcept |
| | Unary negation.
|
| |
| Vector & | operator-= (const Vector &rhs) noexcept |
| | Vector subtraction assignment.
|
| |
| Vector | operator* (VectorComponentType scalar) const noexcept |
| | Scalar multiplication.
|
| |
| Vector | operator* (const Vector &rhs) const noexcept |
| | Element-wise multiplication.
|
| |
| Vector & | operator*= (VectorComponentType scalar) noexcept |
| | Scalar multiplication assignment.
|
| |
| Vector & | operator*= (const Vector &rhs) noexcept |
| | Element-wise multiplication assignment.
|
| |
| Vector | operator/ (VectorComponentType scalar) const |
| | Scalar division.
|
| |
| Vector | operator/ (const Vector &rhs) const |
| | Element-wise division.
|
| |
| Vector & | operator/= (VectorComponentType scalar) |
| | Scalar division assignment.
|
| |
| Vector & | operator/= (const Vector &rhs) |
| | Element-wise division assignment.
|
| |
| bool | operator== (const Vector &rhs) const noexcept |
| | Equality comparison.
|
| |
| bool | equalsEpsilon (const Vector &rhs, VectorComponentType epsilon=VectorComponentType { 1e-5 }) const |
| | Approximate equality using an epsilon threshold.
|
| |
| bool | operator!= (const Vector &rhs) const noexcept |
| | Inequality comparison.
|
| |
template<CanBeScaleComponent ScaleComponentType>
class utility::graphic::Scale< ScaleComponentType >
Scale in 3D space represented as a vector of three ScaleComponentType components (x, y, z).
This class provides a 3D scale vector, typically used for scaling objects in 3D graphic. It supports construction from initializer lists, GLM vectors, and provides methods for component access and scaling operations.
- Template Parameters
-
| ScaleComponentType | The type of the scale components (e.g., float, double). |
Definition at line 54 of file scale.hpp.