parameters: (self, point=None)
docstring: Set or get the second point of the dim.
docstring_summary: Set or get the second point of the dim.
docstring_tokens: Set or get the second point of the dim .
function: def p2(self, point=None):
          """Set or get the second point of the dim."""
          if point:
              p2_proj = self.plane.projectPoint(point)
              p2_proj_u = (p2_proj - self.plane.position).dot(self.plane.u.normalize())
              p2_proj_v = (p2_proj - self.plane.position).dot(self.plane.v.normalize())
              self.pnts.set1Value(1, p2_proj_u, p2_proj_v, 0)
              self.setString()
          else:
              return Vector(self.pnts.getValues()[-1].getValue())
function_tokens: def p2 ( self , point = None ) : if point : p2_proj = self . plane . projectPoint ( point ) p2_proj_u = ( p2_proj - self . plane . position ) . dot ( self . plane . u . normalize ( ) ) p2_proj_v = ( p2_proj - self . plane . position ) . dot ( self . plane . v . normalize ( ) ) self . pnts . set1Value ( 1 , p2_proj_u , p2_proj_v , 0 ) self . setString ( ) else : return Vector ( self . pnts . getValues ( ) [ - 1 ] . getValue ( ) )