## RiVector2

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

### Quick Index

No documentation available.

### Class Summary

class RiVector2
{
 public: // constructors RiVector2(); RiVector2(const RiVector2 &v); RiVector2(const RiUnitVector2 &v); RiVector2(const RiReal *v); RiVector2(RiReal x, RiReal y); // assignment operator const RiVector2 & operator=(const RiVector2 &v); // equality operator bool operator==(const RiVector2 &v) const; // member access RiReal X() const ; RiReal Y() const ; RiReal U() const ; RiReal V() const ; RiReal operator[](int n) const; // vector operators RiVector2 operator+(const RiVector2 &v) const; RiVector2 operator-(const RiVector2 &v) const; const RiVector2 &operator+= =(const RiVector2 &v); const RiVector2 & operator-=(const RiVector2 &v); // scalar operators RiVector2 operator*(RiReal n) const; RiVector2 operator/(RiReal n) const; const RiVector2 &operator*= =(RiReal n); const RiVector2 &operator/= =(RiReal n); // unary minus RiVector2 operator-() const; // unary plus RiVector2 operator+() const; // dot product RiReal operator*(const RiVector2 &v) const; // useful miscellany RiUnitVector2 UnitVector() const; RiReal Length() const; RiReal LengthSquared() const; protected:
}; // RiVector2

#### RiVector2();

ctor2();No documentation available.

RiVector2();

#### RiVector2(const RiVector2 &v);

ctor2(const RiVector2 &v);No documentation available.

RiVector2(const RiVector2 &v);

#### RiVector2(const RiUnitVector2 &v);

ctor2(const RiUnitVector2 &v);No documentation available.

RiVector2(const RiUnitVector2 &v);

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

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

RiVector2(const RiReal *v);

#### RiVector2(RiReal x, RiReal y);

ctor2(RiReal x, RiReal y);No documentation available.

RiVector2(RiReal x, RiReal y);

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

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

const RiVector2 &operator=(const RiVector2 &v);

#### bool operator==(const RiVector2 &v) const;

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

bool operator==(const RiVector2 &v) const;

#### RiReal X() const ;

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

RiReal X() const
;

Function is currently defined inline.

#### RiReal Y() const ;

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

RiReal Y() const
;

Function is currently defined inline.

#### RiReal U() const ;

al U() const { return data[0]; }No documentation available.

RiReal U() const
;

Function is currently defined inline.

#### RiReal V() const ;

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

RiReal V() const
;

Function is currently defined inline.

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

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

RiReal operator[](int n) const;

#### RiVector2 operator+(const RiVector2 &v) const;

ctor2 operator+(const RiVector2 &v) const;No documentation available.

RiVector2 operator+(const RiVector2 &v) const;

#### RiVector2 operator-(const RiVector2 &v) const;

ctor2 operator-(const RiVector2 &v) const;No documentation available.

RiVector2 operator-(const RiVector2 &v) const;

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

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

const RiVector2 &operator+=(const RiVector2 &v);

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

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

const RiVector2 &operator-=(const RiVector2 &v);

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

ctor2 operator*(RiReal n) const;No documentation available.

RiVector2 operator*(RiReal n) const;

#### RiVector2 operator/(RiReal n) const;

ctor2 operator/(RiReal n) const;No documentation available.

RiVector2 operator/(RiReal n) const;

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

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

const RiVector2 &operator*=(RiReal n);

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

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

const RiVector2 &operator/=(RiReal n);

#### RiVector2 operator-() const;

ctor2 operator-() const;No documentation available.

RiVector2 operator-() const;

#### RiVector2 operator+() const;

ctor2 operator+() const;No documentation available.

RiVector2 operator+() const;

#### RiReal operator*(const RiVector2 &v) const;

al operator*(const RiVector2 &v) const;No documentation available.

RiReal operator*(const RiVector2 &v) const;

#### RiUnitVector2 UnitVector() const;

itVector2 UnitVector() const;No documentation available.

RiUnitVector2 UnitVector() const;

#### RiReal Length() const;

al Length() const;No documentation available.

RiReal Length() const;

#### RiReal LengthSquared() const;

al LengthSquared() const;No documentation available.

RiReal LengthSquared() const;

### All Members

public:
// assignment operator
const RiVector2 &operator=(const RiVector2 &v);
// equality operator
bool operator==(const RiVector2 &v) const;
// member access
RiReal X() const ;
RiReal Y() const ;
RiReal U() const ;
RiReal V() const ;
RiReal operator[](int n) const;
// vector operators
RiVector2 operator+(const RiVector2 &v) const;
RiVector2 operator-(const RiVector2 &v) const;
const RiVector2 &operator+==(const RiVector2 &v);
const RiVector2 &operator-=(const RiVector2 &v);
// scalar operators
RiVector2 operator*(RiReal n) const;
RiVector2 operator/(RiReal n) const;
const RiVector2 &operator*==(RiReal n);
const RiVector2 &operator/==(RiReal n);
// unary minus
RiVector2 operator-() const;
// unary plus
RiVector2 operator+() const;
// dot product
RiReal operator*(const RiVector2 &v) const;
// useful miscellany
RiUnitVector2 UnitVector() const;
RiReal Length() const;
RiReal LengthSquared() const;
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:12 2000 .