Class: Vector la.py

A 3-element vector.

Base Classes
_ReprMixin
object
Methods
```__add__ ( self,  other )

```

Return u + v.

__div__
```__div__ ( self,  scalar )

```

Return v/r.

__eq__
```__eq__ ( self,  other )

```

Return u == v.

__ge__
```__ge__ ( self,  other )

```
Exceptions
TypeError, "no ordering on vectors"
__getitem__
```__getitem__ ( self,  index )

```
__gt__
```__gt__ ( self,  other )

```
Exceptions
TypeError, "no ordering on vectors"
__init__
```__init__ (
self,
x,
y,
z,
)

```
__le__
```__le__ ( self,  other )

```
Exceptions
TypeError, "no ordering on vectors"
__len__
```__len__ ( self )

```
__lt__
```__lt__ ( self,  other )

```
Exceptions
TypeError, "no ordering on vectors"
__mul__
```__mul__ ( self,  scalar )

```

Return v r.

__ne__
```__ne__ ( self,  other )

```

Return u != v.

__neg__
```__neg__ ( self )

```

Return -v.

__rmul__
```__rmul__ ( self,  scalar )

```

Return r v.

__str__
```__str__ ( self )

```
__sub__
```__sub__ ( self,  other )

```

Return u - v.

bound
```bound ( self,  norm )

```

Return a vector in the same direction, but whose length is no greater than norm.

cross
```cross ( self,  other )

```

Return the cross product, u cross v.

dot
```dot ( self,  other )

```

Return the dot product, u dot v.

isUnit
```isUnit ( self )

```

Does this vector has unit norm?

norm
```norm ( self )

```

Return the vector norm.

normSquared
```normSquared ( self )

```

Return the squared vector norm. If it is not necessary to actually calculate the norm, this is more efficient since it does not involve a square root.

unit
```unit ( self )

```

Return a vector in the same direction but whose length is unity.