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  -  SBVEC4F (3)

NAME

SbVec4f — 4D vector class

CONTENTS

Inherits From
Synopsis
Description
Methods
File Format/defaults
See Also

INHERITS FROM

SbVec4f

SYNOPSIS

#include <Inventor/SbLinear.h>

Methods from class SbVec4f:

       
                    
                     SbVec4f()    
   
                    
                     SbVec4f(const float v[4])    
   
                    
                     SbVec4f(float x, float y, float z, float w)    
float    
                    
float                dot(const SbVec4f &v) const    
SbBool    
                    
SbBool               equals(const SbVec4f v, float tolerance) const    
void    
                    
void                 getReal(SbVec3f &v) const    
const float *    
                    
const float *        getValue() const    
void    
                    
void                 getValue(float &x, float &y, float &z, float &w) const    
float    
                    
float                length() const    
void    
                    
void                 negate()    
   
                    
                     normalize()    
SbVec4f &    
                    
SbVec4f &            setValue(const float v[4])    
SbVec4f &    
                    
SbVec4f &            setValue(float x, float y, float z, float w)    
float &    
                    
float &              operator [](int i)    
const float &    
                    
const float &        operator [](int i)    
SbVec4f &    
                    
SbVec4f &            operator *=(float d)    
SbVec4f &    
                    
SbVec4f &            operator /=(float d)    
SbVec4f &    
                    
SbVec4f &            operator +=(const SbVec4f &u)    
SbVec4f &    
                    
SbVec4f &            operator -=(const SbVec4f &u)    
SbVec4f    
                    
SbVec4f              operator -() const    
SbVec4f    
                    
SbVec4f              operator *(const SbVec4f &v, float d)    
SbVec4f    
                    
SbVec4f              operator *(float d, const SbVec4f &v)    
SbVec4f    
                    
SbVec4f              operator /(const SbVec4f &v, float d)    
SbVec4f    
                    
SbVec4f              operator +(const SbVec4f &v1, const SbVec4f &v2)    
SbVec4f    
                    
SbVec4f              operator -(const SbVec4f &v1, const SbVec4f &v2)    
int    
                    
int                  operator ==(const SbVec4f &v1, const SbVec4f &v2)    
int    
                    
int                  operator !=(const SbVec4f &v1, const SbVec4f &v2)

DESCRIPTION

4D vector class used to store homogeneous coordinates. This class is used in Inventor for arguments and return values.

METHODS

       
                    
                     SbVec4f()
Default constructor.

       
                    
                     SbVec4f(const float v[4])    
   
                    
                     SbVec4f(float x, float y, float z, float w)
Constructor given vector components.

    float    
                    
float                dot(const SbVec4f &v) const
Returns dot (inner) product of vector and another vector.

    SbBool    
                    
SbBool               equals(const SbVec4f v, float tolerance) const
Equality comparison within given tolerance — the square of the length of the maximum distance between the two vectors.

    void    
                    
void                 getReal(SbVec3f &v) const
Returns the real portion of the vector by dividing by the fourth value.

    const float *    
                    
const float *        getValue() const    
void    
                    
void                 getValue(float &x, float &y, float &z, float &w) const
Returns vector components.

    float    
                    
float                length() const
Returns geometric length of vector.

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

       
                    
                     normalize()
Changes vector to be unit length.

    SbVec4f &    
                    
SbVec4f &            setValue(const float v[4])    
SbVec4f &    
                    
SbVec4f &            setValue(float x, float y, float z, float w)
Sets the vector components.

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

    SbVec4f &    
                    
SbVec4f &            operator *=(float d)    
SbVec4f &    
                    
SbVec4f &            operator /=(float d)
Component-wise scalar multiplication and division operators.

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

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

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

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

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

FILE FORMAT/DEFAULTS

SEE ALSO

SbVec2f, SbVec3f, SbVec2s, SbRotation

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


SBVEC4F(3IV) (-->)

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