1. Data structures¶
1.1. Basic¶
-
template<typename
T
= double>
classpoint
¶ Define a point for the 2D plan, it has two dimensions.
-
template<typename
TPrecision
= double, typenameTPoint
= point<TPrecision>>
classbimpp::plan2d
::
constant
¶ Define some classes and declare some constant values
Public Static Functions
-
static inline bool
isValid
(id_type _id)¶ Is id valid?
Public Static Attributes
-
static const point_type
zero_point
¶ Origin point.
-
static const point_type
unit_point
¶ Unit point.
-
static const id_type
none_id
¶ Invalid id.
-
static inline bool
1.2. Node¶
-
template<typename
TConstant
= constant<>>
classbimpp::plan2d
::
node
¶ A point or a joint in the plan.
A node represents a point or a joint with two walls in the 2D plan
Public Functions
-
inline
node
(precision_type _x = 0, precision_type _y = 0)¶ A constructor by a 2D coordinate
- Parameters
_x
: The value in x-axis, default is 0._y
: The value in y-axis, default is 0.
-
inline