Divider(....)

Objects derived from the _Point abstract class, dividing a given geometric object by a given ratio and in accordance with a defined geometric relationship


def Divider

constructors:
  • Divider(line, ratio =.4); calls: class LineDivider
  • Divider(line,point1, point2); calls: class LineCut
  • Divider(line1,line2); calls: class LineCut
  • Divider(p1_a,p1_b,p1_c,p1_d,p1a,p2_a,p2_b,p2_c); calls: class CrossPoint`_
  • Divider(point1, point2, point3);calls: class Harmonic
returns:

a point which divides a geometric object

class LineDivider

constructors:
  • Divider(line, ratio=<numeric>)
  • LineDivider(line, ratio=<numeric>)
returns:

point of the given line dividing it so that the length of the segment from the lines 'p1' attribute is in the given ratio with respect to the total length of the line segment .

site ref:

http://mathworld.wolfram.com/LineSegment.html

class LineCut

constructors:
  • Divider(line, point1, point2)
  • Divider(line1,line2)
  • LineCut(line, point1, point2)
  • Divider(Line1,line2)
returns:

a point of the given line dividing it so that the length of the segment from the lines 'p1' attribute is equal to the distance between the 2 point arguments (or length of line2 argument)

site ref:

http://mathworld.wolfram.com/LineSegment.html

class CrossPoint

constructors:
  • Divider([p1_a,p1_b,p1_c,p1_d],[p1a,p2_a,p2_b,p2_c])
  • CrossPoint([p1_a,p1_b,p1_c,p1_d],[p1a,p2_a,p2_b,p2_c])
returns:

the 4th point on the line of the 3 collinear point arguments which determines a cross ratio equal ( equicross ) to that of the 4 collinear point arguments.

conditions:

4 points collinear and 3 points collinear

else returns:

None

site ref:

http://mathworld.wolfram.com/Cross-Ratio.html

class Harmonic

constructors:
  • Divider(point1, point2, point3)
  • Harmonic(point1, point2, point3)
returns:

the harmonic conjugate of point1 with respect to point2 and point3.

condition:

points collinear

else returns:

None

site ref:

http://mathworld.wolfram.com/HarmonicConjugate.html

class CircumPoint

constructors:
  • Divider(circle, angle = pi/2)
  • CircumPoint(circle, angle = pi/2)
returns:

the point on the circle circumference rotated by 'angle' (in radian s) from the circle 'cpoint' attribute.

site ref:

http://mathworld.wolfram.com/Circumference.html