SbVec2f man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



								  SbVec2f(3IV)

NAME
     SbVec2f (SbV2f) - 2D vector class

INHERITS FROM
     SbVec2f

SYNOPSIS
     #include <Inventor_c/SbLinear.h>

     typedef SbVec2f	 SbV2f

	  Functions from class SbVec2f:

     SbBool		 SbV2fEquals(const SbV2f *this, const SbVec2f v, float
			      tolerance)
     float		 SbV2fNorm(SbV2f *this)
     int		 SbV2fIsEq(SbV2f *this, const SbVec2f *v1, const
			      SbVec2f *v2)
     int		 SbV2fIsNEq(SbV2f *this, const SbVec2f *v1, const
			      SbVec2f *v2)

	  Macros from class SbVec2f:

     SbV2fDot(SbVec2f vec0, SbVec2f vec1)
     SbV2fGetXY(float array[2], SbVec2f vec)
     SbV2fGetX_Y(float x, float y, SbVec2f vec)
     SbV2fLen(SbVec2f vec)
     SbV2fNegate(SbVec2f vec)
     SbV2fSetXY(SbVec2f vec, float array[2])
     SbV2fSetX_Y(SbVec2f vec, float x, float y)
     SbV2fMultBy(SbVec2f vec, float scalar)
     SbV2fDivBy(SbVec2f vec, float scalar)
     SbV2fAdd(SbVec2f dest, SbVec2f src1, SbVec2f src2)
     SbV2fSub(SbVec2f dest, SbVec2f src1, SbVec2f src2)

DESCRIPTION
     2D vector class used to store 2D vectors and points. This class is used
     throughout Inventor for arguments and return values.  This object does
     not have Create or Delete functions because it is considered a simple
     datatype; instances of this class may be declared directly as local or
     global variables in C. C programmers can access the components of the
     vector as though it were a simple structure or use the access and
     operation functions described in this reference page:

	  struct SbVec2f { float vec[2]; };

	  SbVec2f   v1, v2;

	  /* The next two lines produce equivalent vectors. */
	  v1.vec[0] = 1.0; v1.vec[1] = 1.0;
	  SbV2fSetX_Y( v2, 1.0, 1.0 );

Page 1

SbVec2f(3IV)

FUNCTIONS
     SbBool		 SbV2fEquals(const SbV2f *this, const SbVec2f v, float
			      tolerance)
	  Equality comparison within given tolerance - the square of the
	  length of the maximum distance between the two vectors.

     float		 SbV2fNorm(SbV2f *this)
	  Changes vector to be unit length.

     int		 SbV2fIsEq(SbV2f *this, const SbVec2f *v1, const
			      SbVec2f *v2)
     int		 SbV2fIsNEq(SbV2f *this, const SbVec2f *v1, const
			      SbVec2f *v2)
	  Equality comparison operators.

MACROS
     SbV2fDot(SbVec2f vec0, SbVec2f vec1)
	  Returns dot (inner) product of two vectors.

     SbV2fGetXY(float array[2], SbVec2f vec)
     SbV2fGetX_Y(float x, float y, SbVec2f vec)
	  Returns vector components.

     SbV2fLen(SbVec2f vec)
	  Returns geometric length of vector.

     SbV2fNegate(SbVec2f vec)
	  Negates each component of vector in place.

     SbV2fSetXY(SbVec2f vec, float array[2])
     SbV2fSetX_Y(SbVec2f vec, float x, float y)
	  Sets the vector components.

     SbV2fMultBy(SbVec2f vec, float scalar)
     SbV2fDivBy(SbVec2f vec, float scalar)
	  Component-wise scalar multiplication and division operators.

     SbV2fAdd(SbVec2f dest, SbVec2f src1, SbVec2f src2)
     SbV2fSub(SbVec2f dest, SbVec2f src1, SbVec2f src2)
	  Component-wise binary vector addition and subtraction operators.

FILE FORMAT/DEFAULTS
     Vec2f {
     }

SEE ALSO
     SbVec3f, SbVec4f, SbVec2s, SbRotation

Page 2

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net