Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bengolder/python-geometry
/ functions
Functions
126 in github.com/bengolder/python-geometry
⨍
Functions
126
◇
Types & classes
28
↓ 14 callers
Method
append
Adds a new point to the set.
geometry/points.py:179
↓ 6 callers
Function
convertToRhino
(obj)
geometry/rhino.py:33
↓ 5 callers
Method
cell_map
map a function to each cell of this matrix, and return the resulting matrix. additional iterables can be passed, but the function take one
geometry/matrix.py:112
↓ 5 callers
Function
importFromRhino
This function detects the type of an incoming Rhino object and converts it into the appropriate type the only argument can be either a single
geometry/rhino.py:9
↓ 4 callers
Method
cols
return the number of columns in this matrix
geometry/matrix.py:89
↓ 3 callers
Method
normalized
just returns the normalized version of self without editing self in place.
geometry/vector.py:16
↓ 2 callers
Method
asDict
return dictionary representation of the vector
geometry/vector2d.py:22
↓ 2 callers
Method
asDict
return dictionary representation of the vector
geometry/vector3d.py:30
↓ 2 callers
Method
assertEqualDicts
(self, a, b)
tests/test_vector.py:42
↓ 2 callers
Function
convertFromRhino
(obj)
geometry/rhino.py:21
↓ 2 callers
Method
cross
Gets the cross product between two vectors
geometry/vector3d.py:42
↓ 2 callers
Method
distanceTo
Find the distance between this point and another.
geometry/point3d.py:15
↓ 2 callers
Method
dot
Gets the dot product of this vector and another.
geometry/vector.py:32
↓ 2 callers
Method
fraction
given a value between the interval start and end, this returns a fraction between 0 and 1of the distance along the interval,
geometry/intervals.py:54
↓ 2 callers
Method
rows
return the number of rows in this matrix
geometry/matrix.py:93
↓ 2 callers
Method
toLength
Get a parallel vector with the input amplitude.
geometry/vector.py:22
↓ 2 callers
Method
x
(self)
geometry/vector2d.py:9
↓ 2 callers
Method
y
(self)
geometry/vector2d.py:16
↓ 1 callers
Method
__add__
we want to add single numbers as a way of changing the length of the vector, while it would be nice to be able to do vector addition with
geometry/vector.py:37
↓ 1 callers
Method
angleTo
measures the angle between this plane and another plane. This uses that angle between two normal vectors. Units expressed in radians.
geometry/plane.py:35
↓ 1 callers
Method
contains
tests if a value falls within the interval's bounds
geometry/intervals.py:63
↓ 1 callers
Method
difference
self - other
geometry/points.py:133
↓ 1 callers
Method
extend
Adds an iterable of new points to the set.
geometry/points.py:169
↓ 1 callers
Method
intersection
returns the set intersection between self and other self & other
geometry/points.py:121
↓ 1 callers
Function
isRoughlyZero
(number)
geometry/core.py:15
↓ 1 callers
Method
is_rectangular
This method is used to ensure that all rows are the smae length and all columns are the same length.
geometry/matrix.py:72
↓ 1 callers
Method
issubset
Used to see if all the items of an iterable are contained in this pointSet. self <= other
geometry/points.py:82
↓ 1 callers
Method
issuperset
Used to see of all of the items in this object are contained in an other object. self >= other
geometry/points.py:95
↓ 1 callers
Method
iter_cols
iterate through a transposed version of this Matrix
geometry/matrix.py:101
↓ 1 callers
Method
symmetric_difference
Returns all the points in self and other that are not in the intersection of self and other. self ^ other
geometry/points.py:145
↓ 1 callers
Method
toX
For getting a copy of the same vector but with a new x value
geometry/vector2d.py:36
↓ 1 callers
Method
toX
For getting a copy of the same vector but with a new x value
geometry/vector3d.py:18
↓ 1 callers
Method
toY
For getting a copy of the same vector but with a new y value
geometry/vector2d.py:40
↓ 1 callers
Method
toY
For getting a copy of the same vector but with a new y value
geometry/vector3d.py:22
↓ 1 callers
Method
toZ
For getting a copy of the same vector but with a new z value
geometry/vector3d.py:26
↓ 1 callers
Method
union
returns a new PointSet with the points from self and the points from other. self | other
geometry/points.py:107
↓ 1 callers
Method
z
(self)
geometry/vector3d.py:12
Method
__add__
add this matrix to another, or add a number
geometry/matrix.py:163
Method
__and__
(self, other)
geometry/points.py:130
Method
__call__
given a fractional value along the interval (between 0.0 and 1.0), this returns the actual value
geometry/intervals.py:67
Method
__call__
converts a value in the domain to a proportional value in the range
geometry/intervals.py:141
Method
__call__
(self)
tests/test_vector.py:16
Method
__contains__
checks to see if this set has an item that matches other other in self
geometry/points.py:76
Method
__eq__
I am allowing these to compared to tuples, and to say that yes, they are equal. the idea here is that a Vector3d _is_ a tuple of floats, but
geometry/vector.py:87
Method
__ge__
(self, other)
geometry/points.py:104
Method
__getitem__
gets the row from the table of the Matrix
geometry/matrix.py:64
Method
__getitem__
This builds a dictionary / list-like api on the PointSet. The `key` might be an integer or a coordinate tuple, or a point. There is a
geometry/points.py:51
Method
__getitem__
Treats the vector as a tuple or dict for indexes and slicing.
geometry/vector2d.py:26
Method
__getitem__
Treats the vector as a tuple or dict for indexes and slicing.
geometry/vector3d.py:34
Method
__getitem__
(self, key)
geometry/mesh.py:19
Method
__hash__
(self)
geometry/vector.py:84
Method
__init__
(self, width=200, height=100, *args, **kwargs)
geometry/boxes.py:20
Method
__init__
(self, width=200, length=200, height=200, *args, **kwargs)
geometry/boxes.py:32
Method
__init__
(self, msg)
geometry/matrix.py:17
Method
__init__
Nested iterables of values can be passed, or you can designate a size of the matrix. The default is 3x3 identity matrix.
geometry/matrix.py:26
Method
__init__
(self, *args)
geometry/intervals.py:24
Method
__init__
(self, domain=(0.0, 1.0), range=(0.0, 1.0) )
geometry/intervals.py:137
Method
__init__
(self, *args, **kwargs)
geometry/point3d.py:8
Method
__init__
(self, *args, **kwargs)
geometry/point2d.py:5
Method
__init__
(self, points=None)
geometry/points.py:9
Method
__init__
(self, *args, **kwargs)
geometry/plane.py:17
Method
__init__
(self, x=0.0, y=0.0)
geometry/vector2d.py:4
Method
__init__
(self, x=0.0, y=0.0, z=0.0)
geometry/vector3d.py:7
Method
__init__
(self, *args)
geometry/line.py:17
Method
__init__
(self, start_point, end_point)
geometry/line.py:34
Method
__init__
The initialization methods assumes that it will receive two points
geometry/mesh.py:14
Method
__init__
(self)
geometry/mesh.py:60
Method
__init__
(self)
geometry/mesh.py:67
Method
__init__
(self)
geometry/mesh.py:73
Method
__init__
(self)
geometry/mesh.py:82
Method
__init__
(self, scale=100, dim=3, number_type=float)
tests/test_vector.py:8
Method
__ior__
(self, other)
geometry/points.py:176
Method
__iter__
iterate through the table of the matrix
geometry/matrix.py:53
Method
__iter__
Uses the internal list for iteration
geometry/points.py:68
Method
__iter__
For iterating, the vectors coordinates are represented as a tuple.
geometry/vector.py:28
Method
__le__
(self, other)
geometry/points.py:92
Method
__len__
gets the number of rows in the matrix
geometry/matrix.py:68
Method
__len__
returns the number of Points it has.
geometry/points.py:72
Method
__len__
(self)
geometry/mesh.py:22
Method
__mul__
get matrix product, be sure that sizes fit. If multiplied with another matrix, this produces a matrix product. if multiplied by anythi
geometry/matrix.py:123
Method
__mul__
if with a number, then scalar multiplication of the vector, if with a Vector, then dot product, I guess for now, because the a
geometry/vector.py:61
Method
__or__
(self, other)
geometry/points.py:118
Method
__repr__
(self)
geometry/matrix.py:185
Method
__repr__
(self)
geometry/intervals.py:129
Method
__repr__
(self)
geometry/point3d.py:12
Method
__repr__
(self)
geometry/point2d.py:9
Method
__repr__
(self)
geometry/plane.py:89
Method
__repr__
(self)
geometry/vector2d.py:44
Method
__repr__
(self)
geometry/vector3d.py:50
Method
__repr__
(self)
geometry/line.py:27
Method
__repr__
(self)
geometry/line.py:36
Method
__str__
(self)
geometry/matrix.py:19
Method
__sub__
subtract another Matrix from this one, or subtract a number.
geometry/matrix.py:174
Method
__sub__
(self, other)
geometry/points.py:142
Method
__sub__
Subtract a vector or number
geometry/vector.py:56
Method
__xor__
(self, other)
geometry/points.py:158
Method
angleTo
computes the angle between two vectors cos theta = (n * m) / (n.length * m.length)
geometry/vector.py:94
Method
center
Get or set the center of the box
geometry/boxes.py:24
Method
center
Get or set the center of the box
geometry/boxes.py:38
Method
copy
returns a shallow copy of this pointset
geometry/points.py:161
next →
1–100 of 126, ranked by callers