pymel.core.datatypes.FloatPoint

Inheritance diagram of FloatPoint

class FloatPoint(*args, **kwargs)

A 4 dimensional vector class that wraps Maya’s api FloatPoint class, It behaves identically to Point, but it also derives from api’s FloatPoint to keep api methods happy

apicls

alias of MFloatPoint

cnames = ('x', 'y', 'z', 'w')
ndim = 1
one = dt.FloatPoint([1.0, 1.0, 1.0])
origin = dt.FloatPoint([0.0, 0.0, 0.0])
setCast(srcpt)

Copy the values of x, y, z, and w from srcpt to the instance. Note that this operation will lose precision as it casts from double to single-precision floating point.

Parameters :
srcpt : Point

the point to copy the x, y, z and w values from.

Derived from api method maya.OpenMaya.MFloatPoint.setCast

Undo is not currently supported for this method

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

Previous topic

pymel.core.datatypes.FloatMatrix

Next topic

pymel.core.datatypes.FloatVector

Core

Core Modules

Other Modules

This Page