clan::Line2 Class Reference - ClanLib SDK
Description: clan::Line2 Class Reference

Public Member Functions | List of all members
clan::Line2 Class Reference
clanCore Math

2D line - Integer More...

`#include <line.h>`

Inheritance diagram for clan::Line2:

## Public Member Functions
| Line2 ()
| Line2 (const Line2x< int > &copy)
| Line2 (const Vec2< int > &point_p, const Vec2< int > &point_q)
| Line2 (const Vec2< int > &point_p, int gradient)
Public Member Functions inherited from clan::Line2x< int >
| Line2x ()
Vec2< int > | get_intersection (const Line2x< int > &second, bool &intersect) const
| Return the intersection of this and other line.
bool | operator!= (const Line2x< int > &line) const
| != operator.
Line2x< int > & | operator= (const Line2x< int > &copy)=default
| = operator.
bool | operator== (const Line2x< int > &line) const
| == operator.
int | point_right_of_line (Vec2< int > point) const
| Return [<0, 0, >0] if the Point P is right, on or left of the line trough A,B.

## Additional Inherited Members
Public Attributes inherited from clan::Line2x< int >
Vec2< int > | p
| First point on the line.
Vec2< int > | q

## Detailed Description

2D line - Integer

## Constructor & Destructor Documentation

## ◆ Line2() [1/4]

clan::Line2::Line2 | ( |  | ) |
| inline

References clan::Line2x< int >::Line2x().

## ◆ Line2() [2/4]

clan::Line2::Line2 | ( | const Line2x< int > & | copy | ) |
| inline

References clan::Line2x< int >::Line2x().

## ◆ Line2() [3/4]

clan::Line2::Line2 | ( | const Vec2< int > & | point_p,
|  | const Vec2< int > & | point_q )
| inline

References clan::Line2x< int >::Line2x().

## ◆ Line2() [4/4]

clan::Line2::Line2 | ( | const Vec2< int > & | point_p,
|  | int | gradient )
| inline

References clan::Line2x< int >::Line2x().

The documentation for this class was generated from the following file:

- line.h