Cleanup: Grammar in comments

This commit is contained in:
Hans Goudey 2022-06-21 15:47:25 -05:00
parent 256cb68d33
commit c08fda3a6b
Notes: blender-bot 2023-12-22 20:14:11 +01:00
Referenced by issue #99323, Regression: Geometry nodes result does not show in mesh edit mode
1 changed files with 5 additions and 5 deletions

View File

@ -79,7 +79,7 @@ enum class eSpace {
};
std::ostream &operator<<(std::ostream &stream, const eSpace &space);
/** Template class to store RGBA values with different precision, space and alpha association. */
/** Template class to store RGBA values with different precision, space, and alpha association. */
template<typename ChannelStorageType, eSpace Space, eAlpha Alpha> class ColorRGBA {
public:
ChannelStorageType r, g, b, a;
@ -167,7 +167,7 @@ class ColorSceneLinear4f final : public ColorRGBA<float, eSpace::SceneLinear, Al
}
/**
* Convert to its byte encoded counter space.
* Convert to its byte encoded counterpart.
*/
ColorSceneLinearByteEncoded4b<Alpha> encode() const
{
@ -179,7 +179,7 @@ class ColorSceneLinear4f final : public ColorRGBA<float, eSpace::SceneLinear, Al
/**
* Convert color and alpha association to premultiplied alpha.
*
* Does nothing when color has already a premultiplied alpha.
* Does nothing when color already has a premultiplied alpha.
*/
ColorSceneLinear4f<eAlpha::Premultiplied> premultiply_alpha() const
{
@ -196,7 +196,7 @@ class ColorSceneLinear4f final : public ColorRGBA<float, eSpace::SceneLinear, Al
/**
* Convert color and alpha association to straight alpha.
*
* Does nothing when color has straighten alpha.
* Does nothing when color has straight alpha.
*/
ColorSceneLinear4f<eAlpha::Straight> unpremultiply_alpha() const
{
@ -228,7 +228,7 @@ class ColorSceneLinearByteEncoded4b final
}
/**
* Convert to back to float color.
* Convert to a float color.
*/
ColorSceneLinear4f<Alpha> decode() const
{