pymel.core.datatypes.Point

digraph inheritance34648eda03 { rankdir=TB; ranksep=0.15; nodesep=0.15; size="8.0, 12.0"; "Array" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="../pymel.util.arrays/pymel.util.arrays.Array.html#pymel.util.arrays.Array",style="setlinewidth(0.5)",tooltip="A generic n-dimensional array class using nested lists for storage.",height=0.25,shape=box,fontsize=8]; "MPoint" [shape=box,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=8,style="setlinewidth(0.5)",height=0.25]; "MVector" [shape=box,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=8,style="setlinewidth(0.5)",height=0.25]; "Point" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="#pymel.core.datatypes.Point",style="setlinewidth(0.5)",tooltip="A 4 dimensional vector class that wraps Maya's api Point class,",height=0.25,shape=box,fontsize=8]; "Vector" -> "Point" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MPoint" -> "Point" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Vector" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.datatypes.Vector.html#pymel.core.datatypes.Vector",style="setlinewidth(0.5)",tooltip="A 3 dimensional vector class that wraps Maya's api Vector class",height=0.25,shape=box,fontsize=8]; "VectorN" -> "Vector" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MVector" -> "Vector" [arrowsize=0.5,style="setlinewidth(0.5)"]; "VectorN" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="../pymel.util.arrays/pymel.util.arrays.VectorN.html#pymel.util.arrays.VectorN",style="setlinewidth(0.5)",tooltip="A generic size VectorN class derived from Array, basically a 1 dimensional Array.",height=0.25,shape=box,fontsize=8]; "Array" -> "VectorN" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class Point(*args, **kwargs)

A 4 dimensional vector class that wraps Maya’s api Point class,

__add__(other)

u.__add__(v) <==> u+v Returns the result of the addition of u and v if v is convertible to a VectorN (element-wise addition), adds v to every component of u if v is a scalar

__iadd__(other)

u.__iadd__(v) <==> u += v In place addition of u and v, see __add__

__iter__(*args, **kwargs)

Iterate on the api components

__melobject__()

Special method for returning a mel-friendly representation. In this case, a cartesian 3D point

__radd__(other)

u.__radd__(v) <==> v+u Returns the result of the addition of u and v if v is convertible to a VectorN (element-wise addition), adds v to every component of u if v is a scalar

angle(start, end)

a.angle(b, c) –> float Returns the angle (in radians) of rotation from point b to c around a. Note that this angle is not signed, use axis to know the direction of the rotation

apicls

alias of MPoint

axis(start, end, normalize=False)

a.axis(b, c) –> Vector Returns the axis of rotation from point b to c around a as the vector n = (b-a)^(c-a) if the normalize keyword argument is set to True, n is also normalized

bWeights(*args)

p.bWeights(p0, p1, (...), pn) –> tuple Returns a tuple of (n0, n1, ...) normalized barycentric weights so that n0*p0 + n1*p1 + ... = p. This method works for n points defining a concave or convex n sided face, always returns positive normalized weights, and is continuous on the face limits (on the edges), but the n points must be coplanar, and p must be inside the face delimited by (p0, ..., pn)

cartesian()

p.cartesian() –> Point Returns the cartesianized version of p, without changing p.

cartesianize()

p.cartesianize() –> Point If the point instance p is of the form P(W*x, W*y, W*z, W), for some scale factor W != 0, then it is reset to be P(x, y, z, 1). This will only work correctly if the point is in homogenous form or cartesian form. If the point is in rational form, the results are not defined.

center(*args)

p.center(q, r, s (...)) –> Point Returns the Point that is the center of p, q, r, s (...)

cnames = ('x', 'y', 'z', 'w')
cotan(start, end)

a.cotan(b, c) –> float : cotangent of the (b-a), (c-a) angle, a, b, and c should be MPoints representing points a, b, c

homogen()

p.homogen() –> Point Returns the homogenized version of p, without changing p.

homogenize()

p.homogenize() –> Point If the point instance p is of the form P(x, y, z, W) (ie. is in rational or (for W==1) cartesian form), for some scale factor W != 0, then it is reset to be P(W*x, W*y, W*z, W).

isEquivalent(other, tol=None)

Returns true if both arguments considered as Point are equal within the specified tolerance

ndim = 1
one = dt.Point([1.0, 1.0, 1.0])
origin = dt.Point([0.0, 0.0, 0.0])
planar(*args, **kwargs)

p.planar(q, r, s (...), tol=tolerance) –> bool Returns True if all provided points are planar within given tolerance

rational()

p.rational() –> Point Returns the rationalized version of p, without changing p.

rationalize()

p.rationalize() –> Point If the point instance p is of the form P(W*x, W*y, W*z, W) (ie. is in homogenous or (for W==1) cartesian form), for some scale factor W != 0, then it is reset to be P(x, y, z, W). This will only work correctly if the point is in homogenous or cartesian form. If the point is already in rational form, the results are not defined.

shape = (4,)
size = 4
w
x
xAxis = dt.Point([1.0, 0.0, 0.0])
xNegAxis = dt.Point([-1.0, 0.0, 0.0])
y
yAxis = dt.Point([0.0, 1.0, 0.0])
yNegAxis = dt.Point([0.0, -1.0, 0.0])
z
zAxis = dt.Point([0.0, 0.0, 1.0])
zNegAxis = dt.Point([0.0, 0.0, -1.0])
zero = dt.Point([0.0, 0.0, 0.0])