CLASS v1.8.0

Line

kn::Line

Declared in kraken/geometry/Line.hpp

Reference

C++ API

ax

variable
double ax

No description in the source header.

ay

variable
double ay

No description in the source header.

bx

variable
double bx

No description in the source header.

by

variable
double by

No description in the source header.

Line

function5 overloads
Line()
Line(double ax, double ay, double bx, double by)
Line(double ax, double ay, const Vec2 &b)
Line(const Vec2 &a, double bx, double by)
Line(const Vec2 &a, const Vec2 &b)

No description in the source header.

~Line

function
~Line()=default

No description in the source header.

getLength

function
double getLength() const

No description in the source header.

getA

function
Vec2 getA() const

No description in the source header.

setA

function
void setA(const Vec2 &pos)

No description in the source header.

getB

function
Vec2 getB() const

No description in the source header.

setB

function
void setB(const Vec2 &pos)

No description in the source header.

move

function
void move(const Vec2 &offset)

No description in the source header.

moved

function
Line moved(const Vec2 &offset) const

No description in the source header.

getMidpoint

function
Vec2 getMidpoint() const

No description in the source header.

Line getPerpendicular() const

No description in the source header.

getAngle

function
double getAngle() const

No description in the source header.

Vec2 getClosestPoint(const Vec2 &point) const

No description in the source header.

copy

function
Line copy() const

No description in the source header.

operator==

function
bool operator==(const Line &other) const

No description in the source header.

operator!=

function
bool operator!=(const Line &other) const

No description in the source header.

Find your next step

Start typing to search the manual.