instigate::geometry::concept::line::interface< T > Struct Template Reference
Interface for the concept Line Concept.
More...
#include <concept_line.hpp>
List of all members.
Detailed Description
template<typename T>
struct instigate::geometry::concept::line::interface< T >
Interface for the concept Line Concept.
This is a "non-intrusive" interface for the line. Any type, that conceptually can be treated as a line can become a model of this concept, if this interface is provided for it by specializing this template structure with that type and providing definitions for associated types and basic operations.
Member Typedef Documentation
Type of the point.
The type should be the point concept model.
Member Function Documentation
Gets the source @ x coordinate of the line.
- Parameters:
-
[in] | p | is line, which source x coordinate to be get |
- Returns:
- the source x coordinate of the line
- Complexity:
- O(1).
Gets the source @ y coordinate of the line.
- Parameters:
-
[in] | p | is line, which source y coordinate to be get |
- Returns:
- the source y coordinate of the line
- Complexity:
- O(1).
Gets the target x coordinate of the line.
- Parameters:
-
[in] | p | is line, which target x coordinate to be get |
- Returns:
- the target x coordinate of the line
- Complexity:
- O(1).
Gets the target y coordinate of the line.
- Parameters:
-
[in] | p | is line, which target y coordinate to be get |
- Returns:
- the target y coordinate of the line
- Complexity:
- O(1).
Sets the source x coordinate of line with given value.
- Parameters:
-
[out] | p | is the line, which source x coordinate to be set |
[in] | v | is the value to be set |
- Complexity:
- O(1).
Sets the source y coordinate of line with given value.
- Parameters:
-
[out] | p | is the line, which source y coordinate to be set |
[in] | v | is the value to be set |
- Complexity:
- O(1).
Sets the target @ x coordinate of the line with given value.
- Parameters:
-
[out] | p | is the line, which target @ x coordinate to be set |
[in] | v | is the value to be set |
- Complexity:
- O(1).
Sets the target @ y coordinate of the line with given value.
- Parameters:
-
[out] | p | is the line, which target @ y coordinate to be set |
[in] | v | is the value to be set |
- Complexity:
- O(1).
The documentation for this struct was generated from the following file: