|
segment< T > CUSPATIAL_HOST_DEVICE | translate (Vertex const &v) const |
| Return a copy of segment, translated by v .
|
|
Vertex CUSPATIAL_HOST_DEVICE | center () const |
| Return the geometric center of segment.
|
|
T CUSPATIAL_HOST_DEVICE | length2 () const |
| Return the length squared of segment.
|
|
T CUSPATIAL_HOST_DEVICE | slope () |
| Return slope of segment.
|
|
Vertex CUSPATIAL_HOST_DEVICE | lower_left () |
| Return the lower left vertex of segment.
|
|
bool CUSPATIAL_HOST_DEVICE | collinear (segment< T > const &other) |
|
template<typename T, typename Vertex = cuspatial::vec_2d<T>>
class cuspatial::segment< T, Vertex >
A generic segment type.
- Template Parameters
-
T | the base type for the coordinates |
Vertex | the vector type to use for vertices, vec_2d<T> by default |
Definition at line 40 of file segment.cuh.