\brief Set/change start point of the line. * * The end point of the line is preserved, so the direction vector is * recomputed accordingly. * * \param point1 New start point. */
| 130 | * \param point1 New start point. |
| 131 | */ |
| 132 | void SetPoint1(const itk::Point<TCoordRep, NPointDimension> &point1) |
| 133 | { |
| 134 | itk::Vector<TCoordRep, NPointDimension> point2; |
| 135 | point2 = m_Point.GetVectorFromOrigin() + m_Direction; |
| 136 | |
| 137 | m_Point = point1; |
| 138 | m_Direction = point2 - point1.GetVectorFromOrigin(); |
| 139 | } |
| 140 | |
| 141 | /** \brief Get start point of the line. */ |
| 142 | const itk::Point<TCoordRep, NPointDimension> &GetPoint1() const { return m_Point; } |
no outgoing calls