Audacity 3.2.0
|
Namespaces | |
namespace | Colors |
namespace | details |
Classes | |
struct | Color |
Class for storing color in 32-bit format. More... | |
struct | PointType |
A point in 2D space. More... | |
struct | RectType |
Rectangle that is defined by the top left corner and the size. More... | |
struct | SizeType |
A class that represents size in 2D space. More... | |
Typedefs | |
using | Point = PointType< float > |
Alias for the point with float data type. More... | |
using | Rect = RectType< float > |
Alias for rectangle with float data type. More... | |
using | Size = SizeType< float > |
Alias for SizeType<float> More... | |
Functions | |
template<typename ScaleType > | |
constexpr Color | lerp (Color lhs, Color rhs, ScaleType t) |
Performs linear interpolation between two colors. More... | |
GRAPHICS_API constexpr Color | ColorFromRGA (uint32_t rgba) noexcept |
A helper function to create a color from a 32-bit RGBA integer. More... | |
GRAPHICS_API constexpr Color | ColorFromABGR (uint32_t abgr) noexcept |
A helper function to create a color from a 32-bit ABGR integer. More... | |
GRAPHICS_API constexpr Color | ColorFromRGB (uint32_t rgb) noexcept |
A helper function to create a color from a 32-bit RGB integer. Alpha is set to 255. More... | |
GRAPHICS_API constexpr Color | ColorFromARGB (uint32_t argb) noexcept |
A helper function to create a color from a 32-bit ARGB integer. More... | |
GRAPHICS_API constexpr Color | ColorFromFloatRGBA (float r, float g, float b, float a) noexcept |
A helper function to create a color from the floating point components. More... | |
template<typename To , typename From > | |
PointType< To > | point_cast (PointType< From > point) |
Casts a point to another point type. More... | |
template<typename DataType > | |
bool | operator== (PointType< DataType > lhs, PointType< DataType > rhs) noexcept |
template<typename DataType > | |
bool | operator!= (PointType< DataType > lhs, PointType< DataType > rhs) noexcept |
template<typename DataType > | |
PointType< DataType > | operator+ (PointType< DataType > lhs, PointType< DataType > rhs) noexcept |
template<typename DataType > | |
PointType< DataType > | operator- (PointType< DataType > lhs, PointType< DataType > rhs) noexcept |
template<typename DataType > | |
PointType< DataType > | operator* (PointType< DataType > lhs, PointType< DataType > rhs) noexcept |
template<typename DataType > | |
PointType< DataType > | operator/ (PointType< DataType > lhs, PointType< DataType > rhs) noexcept |
template<typename DataType , typename ScaleType > | |
PointType< DataType > | operator* (PointType< DataType > lhs, ScaleType rhs) noexcept |
template<typename DataType , typename ScaleType > | |
PointType< DataType > | operator* (ScaleType lhs, PointType< DataType > rhs) noexcept |
template<typename DataType , typename ScaleType > | |
PointType< DataType > | operator/ (PointType< DataType > lhs, ScaleType rhs) noexcept |
template<typename DataType > | |
auto | DotProduct (PointType< DataType > lhs, PointType< DataType > rhs) noexcept |
Returns the dot (inner) product between the vectors, defined by points. More... | |
template<typename DataType > | |
auto | Norm (PointType< DataType > lhs) noexcept |
Returns the length of a vector matching the point. More... | |
template<typename DataType > | |
auto | Distance (PointType< DataType > lhs, PointType< DataType > rhs) noexcept |
Returns the distance between the two points. More... | |
template<typename DataType > | |
auto | Normalized (PointType< DataType > pt) noexcept |
Returns a normalized vector in the direction of point. More... | |
template<typename DataType > | |
bool | operator== (const RectType< DataType > lhs, const RectType< DataType > rhs) noexcept |
template<typename DataType > | |
bool | operator!= (const RectType< DataType > lhs, const RectType< DataType > rhs) noexcept |
template<typename To , typename From > | |
RectType< To > | rect_cast (RectType< From > rect) |
Cast the rectangle to another data type. More... | |
template<typename To , typename From > | |
SizeType< To > | size_cast (SizeType< From > point) |
Casts size to another data type. More... | |
template<typename DataType > | |
bool | operator== (SizeType< DataType > lhs, SizeType< DataType > rhs) noexcept |
template<typename DataType > | |
bool | operator!= (SizeType< DataType > lhs, SizeType< DataType > rhs) noexcept |
template<typename DataType > | |
SizeType< DataType > | operator+ (SizeType< DataType > lhs, SizeType< DataType > rhs) noexcept |
template<typename DataType > | |
SizeType< DataType > | operator- (SizeType< DataType > lhs, SizeType< DataType > rhs) noexcept |
template<typename DataType > | |
SizeType< DataType > | operator* (SizeType< DataType > lhs, SizeType< DataType > rhs) noexcept |
template<typename DataType > | |
SizeType< DataType > | operator/ (SizeType< DataType > lhs, SizeType< DataType > rhs) noexcept |
template<typename DataType , typename ScaleType > | |
SizeType< DataType > | operator* (SizeType< DataType > lhs, ScaleType rhs) noexcept |
template<typename DataType , typename ScaleType > | |
SizeType< DataType > | operator* (ScaleType lhs, SizeType< DataType > rhs) noexcept |
template<typename DataType , typename ScaleType > | |
SizeType< DataType > | operator/ (SizeType< DataType > lhs, ScaleType rhs) noexcept |
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
Audacity: A Digital Audio Editor
Dmitry Vedenko
using graphics::Point = typedef PointType<float> |
using graphics::Rect = typedef RectType<float> |
using graphics::Size = typedef SizeType<float> |
|
constexprnoexcept |
A helper function to create a color from a 32-bit ABGR integer.
Definition at line 250 of file Color.h.
References graphics::Color::FromABGR().
|
constexprnoexcept |
|
constexprnoexcept |
A helper function to create a color from the floating point components.
Definition at line 273 of file Color.h.
References graphics::Color::FromFloatRGBA().
|
constexprnoexcept |
|
constexprnoexcept |
|
noexcept |
Returns the distance between the two points.
Definition at line 173 of file Point.h.
References DotProduct(), and staffpad::audio::simd::sqrt().
|
noexcept |
Returns the dot (inner) product between the vectors, defined by points.
Definition at line 159 of file Point.h.
Referenced by Distance(), and Norm().
|
constexpr |
|
noexcept |
Returns the length of a vector matching the point.
Definition at line 166 of file Point.h.
References DotProduct(), and staffpad::audio::simd::sqrt().
Referenced by Normalized().
|
noexcept |
Returns a normalized vector in the direction of point.
Definition at line 180 of file Point.h.
References simd_complex_conversions::norm(), and Norm().
|
noexcept |
|
noexcept |
PointType< To > graphics::point_cast | ( | PointType< From > | point | ) |
Casts a point to another point type.
Definition at line 91 of file Point.h.
References graphics::PointType< DataType >::x, and graphics::PointType< DataType >::y.
Cast the rectangle to another data type.
Definition at line 60 of file Rect.h.
References graphics::RectType< DataType >::origin, and graphics::RectType< DataType >::size.
Casts size to another data type.
Definition at line 107 of file Size.h.
References graphics::SizeType< DataType >::height, and graphics::SizeType< DataType >::width.