MCPcopy Create free account
hub / github.com/MITK/MITK / SetPoint1

Method SetPoint1

Modules/Core/include/mitkLine.h:132–139  ·  view source on GitHub ↗

\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. */

Source from the content-addressed store, hash-verified

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; }

Callers 10

GeneratePlaneMethod · 0.80
PlaneMethod · 0.80
SetExtentMethod · 0.80
GeneratePlaneMethod · 0.80
GeneratePlaneMethod · 0.80
Line_TestPointsMethod · 0.80
Line_TestParallelMethod · 0.80
GeneratePlaneMethod · 0.80

Calls

no outgoing calls

Tested by 3

Line_TestPointsMethod · 0.64
Line_TestParallelMethod · 0.64