Bases: object
A Point represents a point in \(\mathbb{R}^3\) with coordinates \(x, y, z,\) or alternatively, a vector in \(\mathbb{R}^3\), supporting standard operations like the norm, distances, scalar and vector products etc.
Overloaded versions
Point(x=0.0, y=0.0, z=0.0)
Create a point at (x, y, z). Default value (0, 0, 0).
The x-coordinate.
The y-coordinate.
The z-coordinate.
Point(dim, x)
Create point from array
Dimension of the array.
The array to create a Point from.
Point(x)
Create point from Array
Array of coordinates.
Point(p)
Copy constructor
The object to be copied.
Overloaded versions
coordinates()
Return coordinate array
The coordinates.
coordinates()
Return coordinate array (const. version)
The coordinates.
Compute cross product with given vector
Compute distance to given point
Note
No example code available for this function.
Compute dot product with given vector
Note
No example code available for this function.
Compute norm of point representing a vector from the origin
Note
No example code available for this function.
Rotate around a given axis
Compute squared distance to given point
Note
No example code available for this function.
Compute norm of point representing a vector from the origin
Note
No example code available for this function.
Return informal string representation (pretty-print)
The membership flag
Return x-coordinate
Return y-coordinate
Return z-coordinate