GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SBVEC2S (3)

NAME

SbVec2s — 2D vector class

CONTENTS

Inherits From
Synopsis
Description
Methods
File Format/defaults
See Also

INHERITS FROM

SbVec2s

SYNOPSIS

#include <Inventor/SbLinear.h>

Methods from class SbVec2s:

       
                    
                     SbVec2s()    
   
                    
                     SbVec2s(const short v[2])    
   
                    
                     SbVec2s(short x, short y)    
int32_t    
                    
int32_t              dot(const SbVec2f &v) const    
const short *    
                    
const short *        getValue() const    
void    
                    
void                 getValue(short &x, short &y) const    
void    
                    
void                 negate()    
SbVec2s &    
                    
SbVec2s &            setValue(const short v[2])    
SbVec2s &    
                    
SbVec2s &            setValue(short x, short y)    
short &    
                    
short &              operator [](int i)    
const short &    
                    
const short &        operator [](int i)    
SbVec2s &    
                    
SbVec2s &            operator *=(int d)    
SbVec2s &    
                    
SbVec2s &            operator *=(double d)    
SbVec2s &    
                    
SbVec2s &            operator /=(int d)    
SbVec2s &    
                    
SbVec2s &            operator /=(double d)    
SbVec2s &    
                    
SbVec2s &            operator +=(const SbVec2s &u)    
SbVec2s &    
                    
SbVec2s &            operator -=(const SbVec2s &u)    
SbVec2s    
                    
SbVec2s              operator -() const    
SbVec2s    
                    
SbVec2s              operator *(const SbVec2s &v, int d)    
SbVec2s    
                    
SbVec2s              operator *(const SbVec2s &v, double d)    
SbVec2s    
                    
SbVec2s              operator *(int d, const SbVec2s &v)    
SbVec2s    
                    
SbVec2s              operator *(double d, const SbVec2s &v)    
SbVec2s    
                    
SbVec2s              operator /(const SbVec2s &v, int d)    
SbVec2s    
                    
SbVec2s              operator /(const SbVec2s &v, double d)    
SbVec2s    
                    
SbVec2s              operator +(const SbVec2s &v1, const SbVec2s &v2)    
SbVec2s    
                    
SbVec2s              operator -(const SbVec2s &v1, const SbVec2s &v2)    
int    
                    
int                  operator ==(const SbVec2s &v1, const SbVec2s &v2)    
int    
                    
int                  operator !=(const SbVec2s &v1, const SbVec2s &v2)

DESCRIPTION

2D vector class used to store 2D integer vectors and points. This class is used throughout Inventor for arguments and return values.

METHODS

       
                    
                     SbVec2s()
Default constructor.

       
                    
                     SbVec2s(const short v[2])    
   
                    
                     SbVec2s(short x, short y)
Constructor given 2 components.

    int32_t    
                    
int32_t              dot(const SbVec2f &v) const
Returns dot (inner) product of vector and another vector.

    const short *    
                    
const short *        getValue() const    
void    
                    
void                 getValue(short &x, short &y) const
Returns vector components.

    void    
                    
void                 negate()
Negates each component of vector in place.

    SbVec2s &    
                    
SbVec2s &            setValue(const short v[2])    
SbVec2s &    
                    
SbVec2s &            setValue(short x, short y)
Sets vector components.

    short &    
                    
short &              operator [](int i)    
const short &    
                    
const short &        operator [](int i)
Accesses indexed component of vector.

    SbVec2s &    
                    
SbVec2s &            operator *=(int d)    
SbVec2s &    
                    
SbVec2s &            operator *=(double d)    
SbVec2s &    
                    
SbVec2s &            operator /=(int d)    
SbVec2s &    
                    
SbVec2s &            operator /=(double d)
Component-wise scalar multiplication and division operators.

    SbVec2s &    
                    
SbVec2s &            operator +=(const SbVec2s &u)    
SbVec2s &    
                    
SbVec2s &            operator -=(const SbVec2s &u)
Component-wise vector addition and subtraction operators.

    SbVec2s    
                    
SbVec2s              operator -() const
Nondestructive unary negation — returns a new vector.

    SbVec2s    
                    
SbVec2s              operator *(const SbVec2s &v, int d)    
SbVec2s    
                    
SbVec2s              operator *(const SbVec2s &v, double d)    
SbVec2s    
                    
SbVec2s              operator *(int d, const SbVec2s &v)    
SbVec2s    
                    
SbVec2s              operator *(double d, const SbVec2s &v)    
SbVec2s    
                    
SbVec2s              operator /(const SbVec2s &v, int d)    
SbVec2s    
                    
SbVec2s              operator /(const SbVec2s &v, double d)
Component-wise binary scalar multiplication and division operators.

    SbVec2s    
                    
SbVec2s              operator +(const SbVec2s &v1, const SbVec2s &v2)    
SbVec2s    
                    
SbVec2s              operator -(const SbVec2s &v1, const SbVec2s &v2)
Component-wise binary vector addition and subtraction operators.

    int    
                    
int                  operator ==(const SbVec2s &v1, const SbVec2s &v2)    
int    
                    
int                  operator !=(const SbVec2s &v1, const SbVec2s &v2)
Equality comparison operators.

FILE FORMAT/DEFAULTS

SEE ALSO

SbVec3f, SbVec4f, SbVec2f

Search for    or go to Top of page |  Section 3 |  Main Index


SBVEC2S(3IV) (-->)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.