liba 0.1.15
An algorithm library based on C/C++
Loading...
Searching...
No Matches
a_line2 Struct Reference

instance structure for two-dimensional line More...

#include <line2.h>

Collaboration diagram for a_line2:
[legend]

Public Member Functions

a_real lim () const
void set_lim (a_real max_)
a_point2 const & org () const
void set_org (a_real x, a_real y)
a_vector2 const & dir () const
int set_dir (a_real x, a_real y)
void tgt (a_point2 &res) const
int set_tgt (a_real x, a_real y)
int set (a_point2 const &p, a_vector2 const &v)
int set (a_point2 const &p, a_point2 const &q)
void eval (a_real w, a_point2 &res) const
a_real parm (a_point2 const &rhs) const
a_real proj (a_point2 const &rhs, a_point2 &res) const
a_real limparm (a_real min, a_real max_, a_point2 const &rhs) const
a_real limproj (a_real min, a_real max_, a_point2 const &rhs, a_point2 &res) const
a_real sdist (a_point2 const &rhs) const
a_real dist (a_point2 const &rhs) const
a_real limdist (a_real min, a_real max_, a_point2 const &rhs, a_real &w, a_point2 &p)
a_real limdist1 (a_real min, a_real max_, a_point2 const &rhs, a_real &w, a_point2 &p)
a_real limdist2 (a_real min, a_real max_, a_point2 const &rhs, a_real &w, a_point2 &p)
a_real segdist (a_line2 const &rhs, a_real min1, a_real max1, a_real min2, a_real max2, a_real &w1, a_real &w2, a_point2 &p1, a_point2 &p2) const
a_real segdist2 (a_line2 const &rhs, a_real min1, a_real max1, a_real min2, a_real max2, a_real &w1, a_real &w2, a_point2 &p1, a_point2 &p2) const
int int0 (a_point2 const &rhs, a_real min, a_real max_, a_real &w) const
int int1 (a_line2 const &rhs, a_real min1, a_real max1, a_real min2, a_real max2, a_real &w1, a_real &w2) const
void rot (a_point2 const &rhs, a_real angle, a_line2 &res) const

Data Fields

a_point2 orig
a_vector2 dir_
a_real max

Detailed Description

instance structure for two-dimensional line


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