MCPcopy Create free account

hub / github.com/bengolder/python-geometry / functions

Functions126 in github.com/bengolder/python-geometry

↓ 14 callersMethodappend
Adds a new point to the set.
geometry/points.py:179
↓ 6 callersFunctionconvertToRhino
(obj)
geometry/rhino.py:33
↓ 5 callersMethodcell_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 callersFunctionimportFromRhino
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 callersMethodcols
return the number of columns in this matrix
geometry/matrix.py:89
↓ 3 callersMethodnormalized
just returns the normalized version of self without editing self in place.
geometry/vector.py:16
↓ 2 callersMethodasDict
return dictionary representation of the vector
geometry/vector2d.py:22
↓ 2 callersMethodasDict
return dictionary representation of the vector
geometry/vector3d.py:30
↓ 2 callersMethodassertEqualDicts
(self, a, b)
tests/test_vector.py:42
↓ 2 callersFunctionconvertFromRhino
(obj)
geometry/rhino.py:21
↓ 2 callersMethodcross
Gets the cross product between two vectors
geometry/vector3d.py:42
↓ 2 callersMethoddistanceTo
Find the distance between this point and another.
geometry/point3d.py:15
↓ 2 callersMethoddot
Gets the dot product of this vector and another.
geometry/vector.py:32
↓ 2 callersMethodfraction
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 callersMethodrows
return the number of rows in this matrix
geometry/matrix.py:93
↓ 2 callersMethodtoLength
Get a parallel vector with the input amplitude.
geometry/vector.py:22
↓ 2 callersMethodx
(self)
geometry/vector2d.py:9
↓ 2 callersMethody
(self)
geometry/vector2d.py:16
↓ 1 callersMethod__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 callersMethodangleTo
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 callersMethodcontains
tests if a value falls within the interval's bounds
geometry/intervals.py:63
↓ 1 callersMethoddifference
self - other
geometry/points.py:133
↓ 1 callersMethodextend
Adds an iterable of new points to the set.
geometry/points.py:169
↓ 1 callersMethodintersection
returns the set intersection between self and other self & other
geometry/points.py:121
↓ 1 callersFunctionisRoughlyZero
(number)
geometry/core.py:15
↓ 1 callersMethodis_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 callersMethodissubset
Used to see if all the items of an iterable are contained in this pointSet. self <= other
geometry/points.py:82
↓ 1 callersMethodissuperset
Used to see of all of the items in this object are contained in an other object. self >= other
geometry/points.py:95
↓ 1 callersMethoditer_cols
iterate through a transposed version of this Matrix
geometry/matrix.py:101
↓ 1 callersMethodsymmetric_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 callersMethodtoX
For getting a copy of the same vector but with a new x value
geometry/vector2d.py:36
↓ 1 callersMethodtoX
For getting a copy of the same vector but with a new x value
geometry/vector3d.py:18
↓ 1 callersMethodtoY
For getting a copy of the same vector but with a new y value
geometry/vector2d.py:40
↓ 1 callersMethodtoY
For getting a copy of the same vector but with a new y value
geometry/vector3d.py:22
↓ 1 callersMethodtoZ
For getting a copy of the same vector but with a new z value
geometry/vector3d.py:26
↓ 1 callersMethodunion
returns a new PointSet with the points from self and the points from other. self | other
geometry/points.py:107
↓ 1 callersMethodz
(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
MethodangleTo
computes the angle between two vectors cos theta = (n * m) / (n.length * m.length)
geometry/vector.py:94
Methodcenter
Get or set the center of the box
geometry/boxes.py:24
Methodcenter
Get or set the center of the box
geometry/boxes.py:38
Methodcopy
returns a shallow copy of this pointset
geometry/points.py:161
next →1–100 of 126, ranked by callers