pyg4ometry.fluka.vector¶
Classes¶
Functions¶
|
Check if two AABB instances are overlapping. |
|
Line is defined in terms of two vectors: a point on the line and |
|
Get point on plane which is closest to point not on the plane. |
|
Module Contents¶
- class pyg4ometry.fluka.vector.Three(shape, dtype=float, buffer=None, offset=0, strides=None, order=None)¶
Bases:
numpy.ndarray- property x¶
- property y¶
- property z¶
- parallel_to(other, tolerance=1e-10)¶
Check if instance is parallel to some other vector, v
- unit()¶
Get this as a unit vector.
- length()¶
vector length (l2 norm)
- dot(other)¶
- cross(other)¶
- __eq__(other)¶
- __ne__(other)¶
- __add__(other)¶
- __radd__(other)¶
- __sub__(other)¶
- __rsub__(other)¶
- __iadd__(other)¶
- __isub__(other)¶
- class pyg4ometry.fluka.vector.AABB(lower, upper)¶
- lower¶
- upper¶
- size¶
- centre¶
- __repr__()¶
- __eq__(other)¶
- cornerDistance()¶
- classmethod fromMesh(csgmesh)¶
- intersects(other)¶
- coplanarIntersects(other)¶
- envelops(other)¶
- intersect(other)¶
- union(other)¶
- isNull()¶
- pyg4ometry.fluka.vector.areAABBsOverlapping(first, second)¶
Check if two AABB instances are overlapping.
- pyg4ometry.fluka.vector.pointOnLineClosestToPoint(point, point_on_line, direction)¶
Line is defined in terms of two vectors: a point on the line and the direction of the line.
point is the point with which the distance to the line is to be minimised.
- pyg4ometry.fluka.vector.pointOnPlaneClosestToPoint(planeNormal, planePoint, point)¶
Get point on plane which is closest to point not on the plane.
- pyg4ometry.fluka.vector.areParallelOrAntiParallel(v1, v2)¶