Python: module vec3
vector of size 3, for Cartesian coordinates
Constructor:
Vec3(x,y,z) - initialize with x,y,z values
Use:
A Vec3 emulates a sequence object, so elements can be set and queried in the
usual fashion.
Vec3s can be added, subtracted, scaled using the normal operators (+-*/).
Additional functions:
norm(vec) - return sqrt(x^2+y^2+z^2).
dot(vec1, vec2) - return the dot product of two vectors.
cross(vec1, vec2) - return the cross product of two vectors.
unitVec(vec) - return a unit vector in the direction of vec.
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
Classes |
| |
- builtins.object
-
- Vec3
class Vec3(builtins.object) |
|
Vec3(*args)
|
|
Methods defined here:
- __add__(self, *args, **kwargs) -> 'Vec3'
- __getitem__(self, *args, **kwargs) -> 'double'
- __iadd__(self, *args, **kwargs) -> 'Vec3'
- __imul__(self, *args, **kwargs) -> 'Vec3'
- __init__(self, *args)
- Initialize self. See help(type(self)) for accurate signature.
- __isub__(self, *args, **kwargs) -> 'Vec3'
- __itruediv__(self, *args, **kwargs) -> 'Vec3'
- __len__(self, *args, **kwargs) -> 'int'
- __mul__(self, *args, **kwargs) -> 'Vec3'
- __neg__(self, *args, **kwargs) -> 'Vec3'
- __repr__(self, *args, **kwargs) -> 'String'
- Return repr(self).
- __rmul__(self, *args, **kwargs) -> 'Vec3'
- __rtruediv__(self, *args, **kwargs) -> 'Vec3'
- __setitem__(self, *args, **kwargs) -> 'void'
- __str__(self, *args, **kwargs) -> 'String'
- Return str(self).
- __sub__(self, *args, **kwargs) -> 'Vec3'
- __truediv__(self, *args, **kwargs) -> 'Vec3'
- pyXplorHelp(self, *args, **kwargs) -> 'String'
- tuple(self, *args, **kwargs) -> 'Vec3_out'
Static methods defined here:
- __swig_destroy__ = delete_Vec3(...)
Data descriptors defined here:
- __dict__
dictionary for instance variables (if defined)
- __weakref__
list of weak references to the object (if defined)
- thisown
The membership flag
| |
Functions |
| |
- cross(*args, **kwargs) -> 'Vec3'
- dot(*args, **kwargs) -> 'double'
- norm(*args, **kwargs) -> 'double'
- pyXplorHelp(*args) -> 'String'
- unitVec(*args, **kwargs) -> 'Vec3'
|