Points#
- class cake.geometry.points.Point2D(x: Any, y: Any)[source]#
Bases:
GeometryORepresents a co-ordinate on a 2D plane, meaning it only has 2 values x and y.
- Parameters:
x (Any[Like[
cake.BasicNode]]) – Value for co-ordinatey (Any[Like[
cake.BasicNode]]) – Value for co-ordinate
- classmethod from_tuple(tup: Tuple[Any, Any]) Point2D[source]#
Generates a 2D point from a tuple
- Parameters:
tup (Tuple[Any[Like[
cake.BasicNode]], Any[Like[cake.BasicNode]]]) – Tuple to create point from