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) {}
2D line - Integer
Definition line.h:125
Line2(const Line2x< int > ©)
Definition line.h:128
Line2(const Vec2< int > &point_p, int gradient)
Definition line.h:130
Line2(const Vec2< int > &point_p, const Vec2< int > &point_q)
Definition line.h:129
Line2()
Definition line.h:127
2D line - Double
Definition line.h:145
Line2d(const Vec2< double > &point_p, const Vec2< double > &point_q)
Definition line.h:149
Line2d(const Line2x< double > ©)
Definition line.h:148
Line2d(const Vec2< double > &point_p, double gradient)
Definition line.h:150
Line2d()
Definition line.h:147
2D line - Float
Definition line.h:135
Line2f()
Definition line.h:137
Line2f(const Vec2< float > &point_p, const Vec2< float > &point_q)
Definition line.h:139
Line2f(const Vec2< float > &point_p, float gradient)
Definition line.h:140
Line2f(const Line2x< float > ©)
Definition line.h:138
2D line
Definition line.h:87
Line2x< Type > & operator=(const Line2x< Type > ©)
= operator.
Definition line.h:114
Line2x(const Vec2< Type > &point_p, const Vec2< Type > &point_q)
Definition line.h:97
bool operator!=(const Line2x< Type > &line) const
!= operator.
Definition line.h:120
bool operator==(const Line2x< Type > &line) const
== operator.
Definition line.h:117
Vec2< Type > p
First point on the line.
Definition line.h:90
Line2x()
Definition line.h:95
Line2x(const Vec2< Type > &point_p, Type gradient)
Definition line.h:98
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
Vec2< Type > q
Definition line.h:93
Vec2< Type > get_intersection(const Line2x< Type > &second, bool &intersect) const
Return the intersection of this and other line.
Line2x(const Line2x< Type > ©)
Definition line.h:96
3D line - Integer
Definition line.h:155
Line3(const Line3x< int > ©)
Definition line.h:158
Line3()
Definition line.h:157
Line3(const Vec3< int > &point_p, const Vec3< int > &point_q)
Definition line.h:159
3D line - Double
Definition line.h:173
Line3d(const Vec3< double > &podouble_p, const Vec3< double > &podouble_q)
Definition line.h:177
Line3d()
Definition line.h:175
Line3d(const Line3x< double > ©)
Definition line.h:176
3D line - Float
Definition line.h:164
Line3f(const Line3x< float > ©)
Definition line.h:167
Line3f(const Vec3< float > &point_p, const Vec3< float > &point_q)
Definition line.h:168
Line3f()
Definition line.h:166
3D line
Definition line.h:55
bool operator==(const Line3x< Type > &line) const
== operator.
Definition line.h:76
Vec3< Type > get_intersection(const Line3x< Type > &second, bool &intersect, Type range=(Type) 0.5) const
Return the intersection of this and other line.
bool operator!=(const Line3x< Type > &line) const
!= operator.
Definition line.h:79
Line3x< Type > & operator=(const Line3x< Type > ©)
= operator.
Definition line.h:73
Line3x()
Definition line.h:60
Vec3< Type > p
Definition line.h:57
Line3x(const Vec3< Type > &point_p, const Vec3< Type > &point_q)
Definition line.h:62
Line3x(const Line3x< Type > ©)
Definition line.h:61
Vec3< Type > q
Definition line.h:58
2D vector
Definition vec4.h:43
3D vector
Definition vec4.h:46