cadnano.extras.math.vector module¶
-
class
Vector3
(x, y, z)¶ Bases:
tuple
-
x
¶ Alias for field number 0
-
y
¶ Alias for field number 1
-
z
¶ Alias for field number 2
-
-
addVectors
(v1, v2)¶
-
applyMatrix3
(m, v)¶
-
applyMatrix4
(m, v)¶
-
crossProduct
(a, b)¶ return normalized cross product
-
multiplyScalar
(v, s)¶ return v1*s
-
normalToPlane
(v1, v2, v3)¶ Calculate unit normal to the normal to the plane defined by vertices v1, v2, and v3
-
normalizeV2
(v)¶
-
normalizeV3
(v)¶
-
subVectors
(v1, v2)¶ return v1 - v2
-
v2AngleBetween
(a, b)¶
-
v2DistanceAndAngle
(a, b)¶
-
v2dot
(a, b)¶
-
v3SetX
(v, x)¶
-
v3SetY
(v, y)¶
-
v3SetZ
(v, z)¶