# Point (hwx.common.math)¶

A mathematical representation of a point in 3D space.

## Public Methods¶

 static planeFromPoints (pt1, pt2, pt3) along (self, towards, distance) distance (self, x, y=None, z=None) distanceTo (self, x, y=None, z=None) distanceToPlane (self, a, b=None, c=None, d=None) midpt (self, x, y=None, z=None)

## Method Details¶

static planeFromPoints(pt1, pt2, pt3)

Computes the plane defined by the three points.

param pt1: The first point. Point The second point. Point The third point. Point The constants of the a parametric plane equation. tuple
along(self, towards, distance)

Computes the point along the line segment.

Defined by self and ‘towards’, at ‘distance’ from self.

param towards: The end point. Point The distance from the Point defined in self. float The newly created point. Point
distance(self, x, y=None, z=None)

Computes the distance to the point defined by x, y, z.

If y is None, x is assumed to be a point (or list).

param x: The x coordinate or a point. Union[float, list[float], Point] The y coordinate. float The z coordinate. float The distance. float
distanceTo(self, x, y=None, z=None)

Computes the distance to the point defined by x, y, z.

If y is None, x is assumed to be a point (or list).

param x: The x coordinate or a point. Union[float, list[float], Point] The y coordinate. float The z coordinate. float The distance. float
distanceToPlane(self, a, b=None, c=None, d=None)

Computes the distance to the parametric plane.

The parametric plane is given by the equation is ax + by + cz + d = 0.

If b is None, a is assumed to be a list.

param a: The constant ‘a’ or a list of all constants. Union[float, list, list[float]] The constant ‘b’. float The constant ‘c’. float The constant ‘d’. float The distance. float
midpt(self, x, y=None, z=None)

Computes the middle point of the line segment between self and the point defined by x, y, z.

If y is None, x is assumed to be a Point (or list).

param x: The x coordinate or a Point. Union[float, Point, list[float]] The y coordinate. float The z coordinate. float The middle point. Point