32 #include "../api_core.h"
39 template<
typename Type>
42 template<
typename Type>
45 template<
typename Type>
48 template<
typename Type>
56 template<
typename Type>
96 template<
typename Type>
Vec2< Type > get_intersection(const Line2x< Type > &second, bool &intersect) const
Return the intersection of this and other line.
Angle class.
Definition: angle.h:63
Line2x(const Vec2< Type > &point_p, Type gradient)
Definition: line.h:109
Line3(const Vec3< int > &point_p, const Vec3< int > &point_q)
Definition: line.h:184
bool operator==(const Line3x< Type > &line) const
== operator.
Definition: line.h:86
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:125
Line2f(const Line2x< float > ©)
Definition: line.h:163
Vec3< Type > p
Definition: line.h:60
Line2(const Line2x< int > ©)
Definition: line.h:153
Line3x< Type > & operator=(const Line3x< Type > ©)
= operator.
Definition: line.h:83
3D line - Integer
Definition: line.h:179
Line3(const Line3x< int > ©)
Definition: line.h:183
Line2(const Vec2< int > &point_p, int gradient)
Definition: line.h:155
Line3()
Definition: line.h:182
Line2(const Vec2< int > &point_p, const Vec2< int > &point_q)
Definition: line.h:154
2D line - Integer
Definition: line.h:149
Line3f(const Line3x< float > ©)
Definition: line.h:192
2D line
Definition: line.h:40
Line2f(const Vec2< float > &point_p, float gradient)
Definition: line.h:165
2D line - Float
Definition: line.h:159
Type x
Definition: vec2.h:82
bool operator!=(const Line2x< Type > &line) const
!= operator.
Definition: line.h:144
Line3x()
Definition: line.h:63
Line3f()
Definition: line.h:191
Vec2< Type > p
First point on the line.
Definition: line.h:101
Line2x< Type > & operator=(const Line2x< Type > ©)
= operator.
Definition: line.h:138
Vec2< Type > q
Definition: line.h:104
Line3x(const Line3x< Type > ©)
Definition: line.h:64
Line2x(const Vec2< Type > &point_p, const Vec2< Type > &point_q)
Definition: line.h:108
Line2d(const Line2x< double > ©)
Definition: line.h:173
3D line - Double
Definition: line.h:197
2D vector
Definition: line.h:49
Line2d()
Definition: line.h:172
bool operator==(const Line2x< Type > &line) const
== operator.
Definition: line.h:141
Line3d(const Line3x< double > ©)
Definition: line.h:201
2D (left,top,right,bottom) rectangle structure.
Definition: line.h:46
3D vector
Definition: line_ray.h:49
Vec3< Type > q
Definition: line.h:61
Line3d(const Vec3< double > &podouble_p, const Vec3< double > &podouble_q)
Definition: line.h:202
Line3f(const Vec3< float > &point_p, const Vec3< float > &point_q)
Definition: line.h:193
3D line
Definition: line.h:43
Line2x()
Definition: line.h:106
Line3d()
Definition: line.h:200
Line3x(const Vec3< Type > &point_p, const Vec3< Type > &point_q)
Definition: line.h:65
Line2x(const Line2x< Type > ©)
Definition: line.h:107
Line2()
Definition: line.h:152
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:89
Line2f(const Vec2< float > &point_p, const Vec2< float > &point_q)
Definition: line.h:164
Type y
Definition: vec2.h:83
3D line - Float
Definition: line.h:188
Line2d(const Vec2< double > &point_p, const Vec2< double > &point_q)
Definition: line.h:174
Line2d(const Vec2< double > &point_p, double gradient)
Definition: line.h:175
Line2f()
Definition: line.h:162
2D line - Double
Definition: line.h:169