Skip to content

Commit

Permalink
Fix method docs for color value range (#175) (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhuitl committed Apr 5, 2020
1 parent bd157f2 commit d76a061
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/liblas/color.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,20 @@ class LAS_DLL Color

/// User-defined constructor.
/// Initializes object with given RGB values.
/// \exception std::invalid_argument if color component value is out of range of unsigned 8-bit integer.
/// The color component values must be normalized to range from 0 to 65535.
/// \exception std::invalid_argument if color component value is out of range of unsigned 16-bit integer.
Color(uint32_t red, uint32_t green, uint32_t blue);

/// User-defined constructor.
/// Initializes colour components based on values of 3-element array.
/// \exception std::invalid_argument if color component value is out of range of unsigned 8-bit integer.
/// Initializes color components based on values of 3-element array.
/// The color component values must be normalized to range from 0 to 65535.
/// \exception std::invalid_argument if color component value is out of range of unsigned 16-bit integer.
Color(boost::array<value_type, 3> const& color);

/// Copy constructor.
Color(Color const& other);

/// Assignment opreator.
/// Assignment operator.
Color& operator=(Color const& rhs);

/// Fetch value of the red image channel
Expand Down

0 comments on commit d76a061

Please sign in to comment.