## RiVector3

[ Geometry | Source | Search | Keywords | Summary | Ancestors | All Members | Descendants ]

### Quick Index

No documentation available.

### Class Summary

class RiVector3
{
 public: // constructors RiVector3(); RiVector3(const RiVector3 &v); RiVector3(const RiUnitVector3 &v); RiVector3(const RiReal *v); RiVector3(RiReal x, RiReal y, RiReal z); // assignment operator const RiVector3 & operator=(const RiVector3 &v); // member access RiReal X() const ; RiReal Y() const ; RiReal Z() const ; RiReal operator[](int n) const; operator RiReal * *() ; operator const RiReal * *() const ; // vector operators RiVector3 operator+= =(const RiVector3 &v); RiVector3 operator-=(const RiVector3 &v); // scalar operators const RiVector3 &operator*= =(RiReal n); const RiVector3 &operator/= =(RiReal n); // unary minus RiVector3 operator-() const; // useful miscellany RiReal Length() const; friend bool operator==(const RiVector3 &lhs, const RiVector3 &rhs); friend RiVector3 operator+(const RiVector3 &lhs, const RiVector3 &rhs); friend RiVector3 operator-(const RiVector3 &lhs, const RiVector3 &rhs); friend RiReal operator*(const RiVector3 &lhs, const RiVector3 &rhs); friend RiVector3 operator^(const RiVector3 &lhs, const RiVector3 &rhs); friend RiVector3 operator*(const RiVector3 &lhs, RiReal f); friend RiVector3 operator/(const RiVector3 &lhs, RiReal f); protected:
}; // RiVector3

#### RiVector3();

ctor3();No documentation available.

```    RiVector3();
```

#### RiVector3(const RiVector3 &v);

ctor3(const RiVector3 &v);No documentation available.

```    RiVector3(const RiVector3 &v);
```

#### RiVector3(const RiUnitVector3 &v);

ctor3(const RiUnitVector3 &v);No documentation available.

```    RiVector3(const RiUnitVector3 &v);
```

#### RiVector3(const RiReal *v);

ctor3(const RiReal *v);No documentation available.

```    RiVector3(const RiReal *v);
```

#### RiVector3(RiReal x, RiReal y, RiReal z);

ctor3(RiReal x, RiReal y, RiReal z);No documentation available.

```    RiVector3(RiReal x, RiReal y, RiReal z);
```

#### const RiVector3 &operator=(const RiVector3 &v);

t RiVector3 &operator=(const RiVector3 &v);No documentation available.

```    const RiVector3 &operator=(const RiVector3 &v);
```

#### RiReal X() const ;

al X() const { return V[0]; }No documentation available.

```    RiReal X() const
;```

Function is currently defined inline.

#### RiReal Y() const ;

al Y() const { return V[1]; }No documentation available.

```    RiReal Y() const
;```

Function is currently defined inline.

#### RiReal Z() const ;

al Z() const { return V[2]; }No documentation available.

```    RiReal Z() const
;```

Function is currently defined inline.

#### RiReal operator[](int n) const;

al operator[](int n) const;No documentation available.

```    RiReal operator[](int n) const;
```

#### operator RiReal *() ;

ator RiReal *() {return V;}No documentation available.

```    operator RiReal *()
;```

Function is currently defined inline.

#### operator const RiReal *() const ;

ator const RiReal *() const {return V;}No documentation available.

```    operator const RiReal *() const
;```

Function is currently defined inline.

#### RiVector3 operator+=(const RiVector3 &v);

ctor3 operator+=(const RiVector3 &v);No documentation available.

```    RiVector3 operator+=(const RiVector3 &v);
```

#### RiVector3 operator-=(const RiVector3 &v);

ctor3 operator-=(const RiVector3 &v);No documentation available.

```    RiVector3 operator-=(const RiVector3 &v);
```

#### const RiVector3 &operator*=(RiReal n);

t RiVector3 &operator*=(RiReal n);No documentation available.

```    const RiVector3 &operator*=(RiReal n);
```

#### const RiVector3 &operator/=(RiReal n);

t RiVector3 &operator/=(RiReal n);No documentation available.

```    const RiVector3 &operator/=(RiReal n);
```

#### RiVector3 operator-() const;

ctor3 operator-() const;No documentation available.

```    RiVector3 operator-() const;
```

#### RiReal Length() const;

al Length() const;No documentation available.

```    RiReal Length() const;
```

#### friend bool operator==(const RiVector3 &lhs, const RiVector3 &rhs);

nd bool operator==(const RiVector3 &lhs, const RiVector3 &rhs);No documentation available.

```    friend  bool operator==(const RiVector3 &lhs, const RiVector3 &rhs);
```

#### friend RiVector3 operator+(const RiVector3 &lhs, const RiVector3 &rhs);

nd RiVector3 operator+(const RiVector3 &lhs, const RiVector3 &rhs);No documentation available.

```    friend  RiVector3 operator+(const RiVector3 &lhs, const RiVector3 &rhs);
```

#### friend RiVector3 operator-(const RiVector3 &lhs, const RiVector3 &rhs);

nd RiVector3 operator-(const RiVector3 &lhs, const RiVector3 &rhs);No documentation available.

```    friend  RiVector3 operator-(const RiVector3 &lhs, const RiVector3 &rhs);
```

#### friend RiReal operator*(const RiVector3 &lhs, const RiVector3 &rhs);

nd RiReal operator*(const RiVector3 &lhs, const RiVector3 &rhs);No documentation available.

```    friend  RiReal    operator*(const RiVector3 &lhs, const RiVector3 &rhs);
```

#### friend RiVector3 operator^(const RiVector3 &lhs, const RiVector3 &rhs);

nd RiVector3 operator^(const RiVector3 &lhs, const RiVector3 &rhs);No documentation available.

```    friend  RiVector3 operator^(const RiVector3 &lhs, const RiVector3 &rhs);
```

#### friend RiVector3 operator*(const RiVector3 &lhs, RiReal f);

nd RiVector3 operator*(const RiVector3 &lhs, RiReal f);No documentation available.

```    friend  RiVector3 operator*(const RiVector3 &lhs, RiReal f);
```

#### friend RiVector3 operator/(const RiVector3 &lhs, RiReal f);

nd RiVector3 operator/(const RiVector3 &lhs, RiReal f);No documentation available.

```    friend  RiVector3 operator/(const RiVector3 &lhs, RiReal f);
```

### All Members

public:
// assignment operator
const RiVector3 &operator=(const RiVector3 &v);
// member access
RiReal X() const ;
RiReal Y() const ;
RiReal Z() const ;
RiReal operator[](int n) const;
operator RiReal **() ;
operator const RiReal **() const ;
// vector operators
RiVector3 operator+==(const RiVector3 &v);
RiVector3 operator-=(const RiVector3 &v);
// scalar operators
const RiVector3 &operator*==(RiReal n);
const RiVector3 &operator/==(RiReal n);
// unary minus
RiVector3 operator-() const;
// useful miscellany
RiReal Length() const;
friend bool operator==(const RiVector3 &lhs, const RiVector3 &rhs);
friend RiVector3 operator+(const RiVector3 &lhs, const RiVector3 &rhs);
friend RiVector3 operator-(const RiVector3 &lhs, const RiVector3 &rhs);
friend RiReal operator*(const RiVector3 &lhs, const RiVector3 &rhs);
friend RiVector3 operator^(const RiVector3 &lhs, const RiVector3 &rhs);
friend RiVector3 operator*(const RiVector3 &lhs, RiReal f);
friend RiVector3 operator/(const RiVector3 &lhs, RiReal f);
protected:

### Ancestors

Class does not inherit from any other class.

### Descendants

Class is not inherited by any others.

Generated from source by the Cocoon utilities on Fri Feb 25 15:15:14 2000 .