.TH "SbVec3s" 3 "Fri Sep 6 2024 15:32:06" "Version 4.0.3" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SbVec3s \- The \fBSbVec3s\fP class is a 3 dimensional vector with short integer coordinates\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBSbVec3s\fP (void)" .br .ti -1c .RI "\fBSbVec3s\fP (const short v[3])" .br .ti -1c .RI "\fBSbVec3s\fP (short x, short y, short z)" .br .ti -1c .RI "\fBSbVec3s\fP (const \fBSbVec3us\fP &v)" .br .ti -1c .RI "\fBSbVec3s\fP (const \fBSbVec3b\fP &v)" .br .ti -1c .RI "\fBSbVec3s\fP (const \fBSbVec3i32\fP &v)" .br .ti -1c .RI "\fBSbVec3s\fP (const \fBSbVec3f\fP &v)" .br .ti -1c .RI "\fBSbVec3s\fP (const \fBSbVec3d\fP &v)" .br .ti -1c .RI "\fBSbVec3s\fP & \fBsetValue\fP (const short v[3])" .br .ti -1c .RI "\fBSbVec3s\fP & \fBsetValue\fP (short x, short y, short z)" .br .ti -1c .RI "\fBSbVec3s\fP & \fBsetValue\fP (const \fBSbVec3us\fP &v)" .br .ti -1c .RI "\fBSbVec3s\fP & \fBsetValue\fP (const \fBSbVec3b\fP &v)" .br .ti -1c .RI "\fBSbVec3s\fP & \fBsetValue\fP (const \fBSbVec3i32\fP &v)" .br .ti -1c .RI "\fBSbVec3s\fP & \fBsetValue\fP (const \fBSbVec3f\fP &v)" .br .ti -1c .RI "\fBSbVec3s\fP & \fBsetValue\fP (const \fBSbVec3d\fP &v)" .br .ti -1c .RI "const short * \fBgetValue\fP (void) const" .br .ti -1c .RI "void \fBgetValue\fP (short &x, short &y, short &z) const" .br .ti -1c .RI "short & \fBoperator[]\fP (int i)" .br .ti -1c .RI "const short & \fBoperator[]\fP (int i) const" .br .ti -1c .RI "int32_t \fBdot\fP (const \fBSbVec3s\fP &v) const" .br .ti -1c .RI "void \fBnegate\fP (void)" .br .ti -1c .RI "\fBSbVec3s\fP & \fBoperator*=\fP (int d)" .br .ti -1c .RI "\fBSbVec3s\fP & \fBoperator*=\fP (double d)" .br .ti -1c .RI "\fBSbVec3s\fP & \fBoperator/=\fP (int d)" .br .ti -1c .RI "\fBSbVec3s\fP & \fBoperator/=\fP (double d)" .br .ti -1c .RI "\fBSbVec3s\fP & \fBoperator+=\fP (const \fBSbVec3s\fP &v)" .br .ti -1c .RI "\fBSbVec3s\fP & \fBoperator\-=\fP (const \fBSbVec3s\fP &v)" .br .ti -1c .RI "\fBSbVec3s\fP \fBoperator\-\fP (void) const" .br .ti -1c .RI "\fBSbString\fP \fBtoString\fP () const" .br .ti -1c .RI "SbBool \fBfromString\fP (const \fBSbString\fP &str)" .br .ti -1c .RI "void \fBprint\fP (FILE *fp) const" .br .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "short \fBvec\fP [3]" .br .in -1c .SS "Related Symbols" (Note that these are not member symbols\&.) .in +1c .ti -1c .RI "\fBSbVec3s\fP \fBoperator*\fP (const \fBSbVec3s\fP &v, int d)" .br .ti -1c .RI "\fBSbVec3s\fP \fBoperator*\fP (const \fBSbVec3s\fP &v, double d)" .br .ti -1c .RI "\fBSbVec3s\fP \fBoperator*\fP (int d, const \fBSbVec3s\fP &v)" .br .ti -1c .RI "\fBSbVec3s\fP \fBoperator*\fP (double d, const \fBSbVec3s\fP &v)" .br .ti -1c .RI "\fBSbVec3s\fP \fBoperator/\fP (const \fBSbVec3s\fP &v, int d)" .br .ti -1c .RI "\fBSbVec3s\fP \fBoperator/\fP (const \fBSbVec3s\fP &v, double d)" .br .ti -1c .RI "\fBSbVec3s\fP \fBoperator+\fP (const \fBSbVec3s\fP &v1, const \fBSbVec3s\fP &v2)" .br .ti -1c .RI "\fBSbVec3s\fP \fBoperator\-\fP (const \fBSbVec3s\fP &v1, const \fBSbVec3s\fP &v2)" .br .ti -1c .RI "int \fBoperator==\fP (const \fBSbVec3s\fP &v1, const \fBSbVec3s\fP &v2)" .br .ti -1c .RI "int \fBoperator!=\fP (const \fBSbVec3s\fP &v1, const \fBSbVec3s\fP &v2)" .br .in -1c .SH "Detailed Description" .PP The \fBSbVec3s\fP class is a 3 dimensional vector with short integer coordinates\&. This vector class provides storage for a 3 dimensional vector as well as simple integer arithmetic operations\&. .PP Be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2\&.1 API\&. .br .PP \fBSee also\fP .RS 4 \fBSbVec2s\fP, \fBSbVec2f\fP, \fBSbVec2d\fP, \fBSbVec3f\fP, \fBSbVec3d\fP, \fBSbVec4f\fP, \fBSbVec4d\fP\&. .RE .PP \fBSince\fP .RS 4 Coin 2\&.0 .PP TGS Inventor ?\&.? .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "SbVec3s::SbVec3s (void )\fR [inline]\fP" The default constructor does nothing\&. The vector coordinates will be uninitialized until you do a \fBsetValue()\fP call\&. .SS "SbVec3s::SbVec3s (const short v[3])\fR [inline]\fP" Constructs an \fBSbVec3s\fP instance with initial values from \fIv\fP\&. .SS "SbVec3s::SbVec3s (short x, short y, short z)\fR [inline]\fP" Constructs an \fBSbVec3s\fP instance with the initial vector endpoint set to \fI\&. .SS "SbVec3s::SbVec3s (const \fBSbVec3us\fP & v)\fR [inline]\fP, \fR [explicit]\fP" .PP \fBSince\fP .RS 4 Coin 2\&.5 .RE .PP .SS "SbVec3s::SbVec3s (const \fBSbVec3b\fP & v)\fR [inline]\fP, \fR [explicit]\fP" .PP \fBSince\fP .RS 4 Coin 2\&.5 .RE .PP .SS "SbVec3s::SbVec3s (const \fBSbVec3i32\fP & v)\fR [inline]\fP, \fR [explicit]\fP" .PP \fBSince\fP .RS 4 Coin 2\&.5 .RE .PP .SS "SbVec3s::SbVec3s (const \fBSbVec3f\fP & v)\fR [inline]\fP, \fR [explicit]\fP" .PP \fBSince\fP .RS 4 Coin 2\&.5 .RE .PP .SS "SbVec3s::SbVec3s (const \fBSbVec3d\fP & v)\fR [inline]\fP, \fR [explicit]\fP" .PP \fBSince\fP .RS 4 Coin 2\&.5 .RE .PP .SH "Member Function Documentation" .PP .SS "\fBSbVec3s\fP & SbVec3s::setValue (const short v[3])\fR [inline]\fP" Set new coordinates for the vector from \fIv\fP\&. Returns reference to self\&. .PP \fBSee also\fP .RS 4 \fBgetValue()\fP\&. .RE .PP .SS "\fBSbVec3s\fP & SbVec3s::setValue (short x, short y, short z)\fR [inline]\fP" Set new coordinates for the vector\&. Returns reference to self\&. .PP \fBSee also\fP .RS 4 \fBgetValue()\fP\&. .RE .PP .SS "\fBSbVec3s\fP & SbVec3s::setValue (const \fBSbVec3us\fP & v)" Sets the value from an \fBSbVec3us\fP instance\&. .PP \fBSince\fP .RS 4 Coin 2\&.5 .RE .PP .SS "\fBSbVec3s\fP & SbVec3s::setValue (const \fBSbVec3b\fP & v)" Sets the value from an \fBSbVec3b\fP instance\&. .PP \fBSince\fP .RS 4 Coin 2\&.5 .RE .PP .SS "\fBSbVec3s\fP & SbVec3s::setValue (const \fBSbVec3i32\fP & v)" Sets the value from an \fBSbVec3i32\fP instance\&. .PP \fBSince\fP .RS 4 Coin 2\&.5 .RE .PP .SS "\fBSbVec3s\fP & SbVec3s::setValue (const \fBSbVec3f\fP & v)" Sets the value from an \fBSbVec3f\fP instance\&. .PP \fBSince\fP .RS 4 Coin 2\&.5 .RE .PP .SS "\fBSbVec3s\fP & SbVec3s::setValue (const \fBSbVec3d\fP & v)" Sets the value from an \fBSbVec3d\fP instance\&. .PP \fBSince\fP .RS 4 Coin 2\&.5 .RE .PP .SS "const short * SbVec3s::getValue (void ) const\fR [inline]\fP" Returns a pointer to an array of three shorts containing the x, y and z coordinates of the vector\&. .PP \fBSee also\fP .RS 4 \fBsetValue()\fP\&. .RE .PP .SS "void SbVec3s::getValue (short & x, short & y, short & z) const\fR [inline]\fP" Returns the x, y and z coordinates of the vector\&. .PP \fBSee also\fP .RS 4 \fBsetValue()\fP\&. .RE .PP .SS "short & SbVec3s::operator[] (int i)\fR [inline]\fP" Index operator\&. Returns modifiable x, y or z coordinate of vector\&. .PP \fBSee also\fP .RS 4 \fBgetValue()\fP and \fBsetValue()\fP\&. .RE .PP .SS "const short & SbVec3s::operator[] (int i) const\fR [inline]\fP" Index operator\&. Returns x, y or z coordinate of vector\&. .PP \fBSee also\fP .RS 4 \fBgetValue()\fP and \fBsetValue()\fP\&. .RE .PP .SS "int32_t SbVec3s::dot (const \fBSbVec3s\fP & v) const\fR [inline]\fP" Calculates and returns the result of taking the dot product of this vector and \fIv\fP\&. .SS "void SbVec3s::negate (void )\fR [inline]\fP" Negate the vector (i\&.e\&. point it in the opposite direction)\&. .SS "\fBSbVec3s\fP & SbVec3s::operator*= (int d)\fR [inline]\fP" Multiply components of vector with value \fId\fP\&. Returns reference to self\&. .SS "\fBSbVec3s\fP & SbVec3s::operator*= (double d)" Multiply components of vector with value \fId\fP\&. Returns reference to self\&. .SS "\fBSbVec3s\fP & SbVec3s::operator/= (int d)\fR [inline]\fP" Divides components of vector with value \fId\fP\&. Returns reference to self\&. .SS "\fBSbVec3s\fP & SbVec3s::operator/= (double d)\fR [inline]\fP" Divides components of vector with value \fId\fP\&. Returns reference to self\&. .SS "\fBSbVec3s\fP & SbVec3s::operator+= (const \fBSbVec3s\fP & v)\fR [inline]\fP" Adds this vector and vector \fIv\fP\&. Returns reference to self\&. .SS "\fBSbVec3s\fP & SbVec3s::operator\-= (const \fBSbVec3s\fP & v)\fR [inline]\fP" Subtracts vector \fIv\fP from this vector\&. Returns reference to self\&. .SS "\fBSbVec3s\fP SbVec3s::operator\- (void ) const\fR [inline]\fP" Non-destructive negation operator\&. Returns a new \fBSbVec3s\fP instance which points in the opposite direction of this vector\&. .PP \fBSee also\fP .RS 4 \fBnegate()\fP\&. .RE .PP .SS "\fBSbString\fP SbVec3s::toString () const" Return a string representation of this object .SS "SbBool SbVec3s::fromString (const \fBSbString\fP & str)" Convert from a string representation, return whether this is a valid conversion .SS "void SbVec3s::print (FILE * fp) const" Dump the state of this object to the \fIfp\fP file stream\&. Only works in debug version of library, method does nothing in an optimized build\&. .SH "Friends And Related Symbol Documentation" .PP .SS "\fBSbVec3s\fP operator* (const \fBSbVec3s\fP & v, int d)\fR [related]\fP" Returns an \fBSbVec3s\fP instance which is the components of vector \fIv\fP multiplied with \fId\fP\&. .SS "\fBSbVec3s\fP operator* (const \fBSbVec3s\fP & v, double d)\fR [related]\fP" Returns an \fBSbVec3s\fP instance which is the components of vector \fIv\fP multiplied with \fId\fP\&. .SS "\fBSbVec3s\fP operator* (int d, const \fBSbVec3s\fP & v)\fR [related]\fP" Returns an \fBSbVec3s\fP instance which is the components of vector \fIv\fP multiplied with \fId\fP\&. .SS "\fBSbVec3s\fP operator* (double d, const \fBSbVec3s\fP & v)\fR [related]\fP" Returns an \fBSbVec3s\fP instance which is the components of vector \fIv\fP multiplied with \fId\fP\&. .SS "\fBSbVec3s\fP operator/ (const \fBSbVec3s\fP & v, int d)\fR [related]\fP" Returns an \fBSbVec3s\fP instance which is the components of vector \fIv\fP divided on the scalar factor \fId\fP\&. .SS "\fBSbVec3s\fP operator/ (const \fBSbVec3s\fP & v, double d)\fR [related]\fP" Returns an \fBSbVec3s\fP instance which is the components of vector \fIv\fP divided on \fId\fP\&. .SS "\fBSbVec3s\fP operator+ (const \fBSbVec3s\fP & v1, const \fBSbVec3s\fP & v2)\fR [related]\fP" Returns an \fBSbVec3s\fP instance which is the sum of vectors \fIv1\fP and \fIv2\fP\&. .SS "\fBSbVec3s\fP operator\- (const \fBSbVec3s\fP & v1, const \fBSbVec3s\fP & v2)\fR [related]\fP" Returns an \fBSbVec3s\fP instance which is vector \fIv2\fP subtracted from vector \fIv1\fP\&. .SS "int operator== (const \fBSbVec3s\fP & v1, const \fBSbVec3s\fP & v2)\fR [related]\fP" Returns \fI1\fP if \fIv1\fP and \fIv2\fP are \fIexactly\fP equal, \fI0\fP otherwise\&. .SS "int operator!= (const \fBSbVec3s\fP & v1, const \fBSbVec3s\fP & v2)\fR [related]\fP" Returns \fI1\fP if \fIv1\fP and \fIv2\fP are not equal, \fI0\fP if they are equal\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.