Skip to content

kbe内置Vector3备忘

ilvxna edited this page Aug 7, 2018 · 1 revision
[cellapp@python ~] >>> import Math      
[cellapp@python ~] >>> dir(Math)
['Vector2', 'Vector3', 'Vector4', '__doc__', '__loader__', '__name__', '__package__', '__spec__']

[cellapp@python ~] >>> dir(Math.Vector3)
['__add__', '__bool__', '__class__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__iadd__', '__imul__', '__init__', '__isub__', '__le__', '__len__', '__lt__', '__mul__', '__ne__', '__neg__', '__new__', '__pos__', '__radd__', '__reduce__', '__reduce_ex__', '__repr__', '__rmul__', '__rsub__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', 'cross2D', 'distSqrTo', 'distTo', 'dot', 'flatDistSqrTo', 'flatDistTo', 'length', 'lengthSquared', 'list', 'normalise', 'scale', 'set', 'tuple', 'x', 'y', 'z']
Clone this wiki locally