18#ifndef BIMHOMEBASE_LINESEGMENT2D_H
19#define BIMHOMEBASE_LINESEGMENT2D_H
21#include "Base/Math/Geometry/Curve2D.h"
二维轴对齐包围盒(AABB)实现
Definition BoundBox2D.h:63
Definition Geometry2D.h:72
Base::Vector2d getEndPoint() const
获取终点
Base::Vector2d mStartPoint
Definition LineSegment2D.h:87
void setEndPoint(const Base::Vector2d &pt)
设置终点
bool Intersect(const Vector2d &rclV, double eps) const
bool Intersect(const LineSegment2D &rclLine, Vector2d &rclV) const
Base::Vector2d getMidPoint()
BoundBox2d CalcBoundBox() const
LineSegment2D(Base::Vector2d startPoint, Base::Vector2d endPoint)
Base::Vector2d getStartPoint() const
获取起点
virtual Geometry2D * copy(void) const
Base::Vector2d mEndPoint
Definition LineSegment2D.h:88
void setStartPoint(const Base::Vector2d &pt)
设置起点
bool Contains(const Vector2d &rclV) const
bool IntersectAndContain(const LineSegment2D &rclLine, Vector2d &rclV) const
LineSegment2D(const LineSegment2D &rclLine)
构造二维直线段
Vector2d FromPos(double fDistance) const
double getLength() const
获取长度
Definition LineSegment2D.h:28
Vector2d 类,表示二维空间中的向量
Definition Vector2D.h:58
Definition BaseFigureFactory.h:24