36 template<
typename Type>
39 template<
typename Type>
42 template<
typename Type>
45 template<
typename Type>
53 template<
typename Type>
85 template<
typename Type>
98 Line2x(
const Vec2<Type> &point_p, Type gradient) :
p(point_p),
q(static_cast<Type> (1), gradient) {}
Line2f(const Vec2< float > &point_p, const Vec2< float > &point_q)
Definition: line.h:139
Angle class.
Definition: angle.h:59
Line3x(const Line3x< Type > ©)
Definition: line.h:61
Line2x< Type > & operator=(const Line2x< Type > ©)
= operator.
Definition: line.h:114
Line2d(const Line2x< double > ©)
Definition: line.h:148
Line2x(const Vec2< Type > &point_p, const Vec2< Type > &point_q)
Definition: line.h:97
Line2(const Line2x< int > ©)
Definition: line.h:128
Line2d()
Definition: line.h:147
Line2(const Vec2< int > &point_p, int gradient)
Definition: line.h:130
Line2d(const Vec2< double > &point_p, const Vec2< double > &point_q)
Definition: line.h:149
Line2x(const Line2x< Type > ©)
Definition: line.h:96
3D line - Integer
Definition: line.h:154
Line2d(const Vec2< double > &point_p, double gradient)
Definition: line.h:150
Line3d()
Definition: line.h:175
Vec3< Type > p
Definition: line.h:57
Vec3< Type > get_intersection(const Line3x< Type > &second, bool &intersect, Type range=(Type) 0.5) const
Return the intersection of this and other line.
2D line - Integer
Definition: line.h:124
2D line
Definition: line.h:37
Line3(const Vec3< int > &point_p, const Vec3< int > &point_q)
Definition: line.h:159
2D line - Float
Definition: line.h:134
Line2f(const Line2x< float > ©)
Definition: line.h:138
Line2x()
Definition: line.h:95
Line2()
Definition: line.h:127
Vec2< Type > p
First point on the line.
Definition: line.h:90
bool operator!=(const Line2x< Type > &line) const
!= operator.
Definition: line.h:120
Line2f()
Definition: line.h:137
3D line - Double
Definition: line.h:172
Line3x()
Definition: line.h:60
Vec2< Type > q
Definition: line.h:93
Line2(const Vec2< int > &point_p, const Vec2< int > &point_q)
Definition: line.h:129
Line2f(const Vec2< float > &point_p, float gradient)
Definition: line.h:140
Line3f(const Vec3< float > &point_p, const Vec3< float > &point_q)
Definition: line.h:168
Line3(const Line3x< int > ©)
Definition: line.h:158
2D vector
Definition: line.h:46
Line3x(const Vec3< Type > &point_p, const Vec3< Type > &point_q)
Definition: line.h:62
Line3x< Type > & operator=(const Line3x< Type > ©)
= operator.
Definition: line.h:73
2D (left,top,right,bottom) rectangle structure.
Definition: line.h:43
Line3f(const Line3x< float > ©)
Definition: line.h:167
3D vector
Definition: line_ray.h:46
bool operator==(const Line2x< Type > &line) const
== operator.
Definition: line.h:117
3D line
Definition: line.h:40
Vec3< Type > q
Definition: line.h:58
Vec2< Type > get_intersection(const Line2x< Type > &second, bool &intersect) const
Return the intersection of this and other line.
bool operator!=(const Line3x< Type > &line) const
!= operator.
Definition: line.h:79
bool operator==(const Line3x< Type > &line) const
== operator.
Definition: line.h:76
Type point_right_of_line(Vec2< Type > point) const
Return [<0, 0, >0] if the Point P is right, on or left of the line trough A,B.
Definition: line.h:111
Line3d(const Vec3< double > &podouble_p, const Vec3< double > &podouble_q)
Definition: line.h:177
Line3d(const Line3x< double > ©)
Definition: line.h:176
Line2x(const Vec2< Type > &point_p, Type gradient)
Definition: line.h:98
Line3()
Definition: line.h:157
Line3f()
Definition: line.h:166
3D line - Float
Definition: line.h:163
2D line - Double
Definition: line.h:144