OpenSceneGraph/doc/doc++/osg/Vec4.html

272 lines
13 KiB
HTML
Raw Normal View History

2001-09-20 05:19:47 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class osg::Vec4</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class <A HREF="#DOC.DOCU">osg::Vec4</A></H2></H2><BLOCKQUOTE>General purpose float quad, uses include representation of colour coordinates.</BLOCKQUOTE>
<HR>
<DL>
<P><DL>
<DT><H3>Public Fields</H3><DD><DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>float <B><A HREF="#DOC.2.110.3">_v</A></B>[4]
2001-09-20 05:19:47 +08:00
</DL></P>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.110.1">Vec4</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.110.2">Vec4</A></B>(float <!1><A HREF="Vec4.html#DOC.2.110.12">x</A>, float <!1><A HREF="Vec4.html#DOC.2.110.13">y</A>, float <!1><A HREF="Vec4.html#DOC.2.110.14">z</A>, float <!1><A HREF="Vec4.html#DOC.2.110.15">w</A>)
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const bool <B><A HREF="#DOC.2.110.4">operator == </A></B>(const <!1><A HREF="Vec4.html">Vec4</A>&amp; v) const
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const bool <B><A HREF="#DOC.2.110.5">operator != </A></B>(const <!1><A HREF="Vec4.html">Vec4</A>&amp; v) const
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const bool <B><A HREF="#DOC.2.110.6">operator < </A></B>(const <!1><A HREF="Vec4.html">Vec4</A>&amp; v) const
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float* <B><A HREF="#DOC.2.110.7">ptr</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const float* <B><A HREF="#DOC.2.110.8">ptr</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.110.9">set</A></B>( float <!1><A HREF="Vec4.html#DOC.2.110.12">x</A>, float <!1><A HREF="Vec4.html#DOC.2.110.13">y</A>, float <!1><A HREF="Vec4.html#DOC.2.110.14">z</A>, float <!1><A HREF="Vec4.html#DOC.2.110.15">w</A>)
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float&amp; <B><A HREF="#DOC.2.110.10">operator [] </A></B>(const int i)
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float <B><A HREF="#DOC.2.110.11">operator [] </A></B>(const int i) const
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float&amp; <B><A HREF="#DOC.2.110.12">x</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float&amp; <B><A HREF="#DOC.2.110.13">y</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float&amp; <B><A HREF="#DOC.2.110.14">z</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float&amp; <B><A HREF="#DOC.2.110.15">w</A></B>()
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float <B><A HREF="#DOC.2.110.16">x</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float <B><A HREF="#DOC.2.110.17">y</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float <B><A HREF="#DOC.2.110.18">z</A></B>() const
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float <B><A HREF="#DOC.2.110.19">w</A></B>() const
2001-12-25 05:56:22 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const bool <B><A HREF="#DOC.2.110.20">valid</A></B>() const
2001-12-25 05:56:22 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const bool <B><A HREF="#DOC.2.110.21">isNaN</A></B>() const
2001-12-25 05:56:22 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float <B><A HREF="#DOC.2.110.22">operator * </A></B>(const <!1><A HREF="Vec4.html">Vec4</A>&amp; rhs) const
2001-09-20 05:19:47 +08:00
<DD><I>dot product</I>
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec4.html">Vec4</A> <B><A HREF="#DOC.2.110.23">operator * </A></B>(const float&amp; rhs) const
2001-09-20 05:19:47 +08:00
<DD><I>multiply by scalar</I>
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec4.html">Vec4</A>&amp; <B><A HREF="#DOC.2.110.24">operator *= </A></B>(const float&amp; rhs)
2001-09-20 05:19:47 +08:00
<DD><I>unary multiply by scalar</I>
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec4.html">Vec4</A> <B><A HREF="#DOC.2.110.25">operator / </A></B>(const float&amp; rhs) const
2001-09-20 05:19:47 +08:00
<DD><I>divide by scalar</I>
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec4.html">Vec4</A>&amp; <B><A HREF="#DOC.2.110.26">operator /= </A></B>(const float&amp; rhs)
2001-09-20 05:19:47 +08:00
<DD><I>unary divide by scalar</I>
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec4.html">Vec4</A> <B><A HREF="#DOC.2.110.27">operator + </A></B>(const <!1><A HREF="Vec4.html">Vec4</A>&amp; rhs) const
2001-09-20 05:19:47 +08:00
<DD><I>binary vector add</I>
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec4.html">Vec4</A>&amp; <B><A HREF="#DOC.2.110.28">operator += </A></B>(const <!1><A HREF="Vec4.html">Vec4</A>&amp; rhs)
2001-09-20 05:19:47 +08:00
<DD><I>unary vector add.</I>
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec4.html">Vec4</A> <B><A HREF="#DOC.2.110.29">operator - </A></B>(const <!1><A HREF="Vec4.html">Vec4</A>&amp; rhs) const
2001-12-25 05:56:22 +08:00
<DD><I>binary vector subtract</I>
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Vec4.html">Vec4</A>&amp; <B><A HREF="#DOC.2.110.30">operator -= </A></B>(const <!1><A HREF="Vec4.html">Vec4</A>&amp; rhs)
2001-12-25 05:56:22 +08:00
<DD><I>unary vector subtract</I>
2001-09-20 05:19:47 +08:00
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Vec4.html">Vec4</A> <B><A HREF="#DOC.2.110.31">operator - </A></B>() const
2001-09-20 05:19:47 +08:00
<DD><I>negation operator.</I>
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const float <B><A HREF="#DOC.2.110.32">length</A></B>() const
2001-09-20 05:19:47 +08:00
<DD><I>Length of the vector = sqrt( vec .</I>
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const float <B><A HREF="#DOC.2.110.33">length2</A></B>() const
2001-09-20 05:19:47 +08:00
<DD><I>Length squared of the vector = vec .</I>
<DT>
2002-04-25 04:13:50 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const float <B><A HREF="#DOC.2.110.34">normalize</A></B>()
2001-09-20 05:19:47 +08:00
<DD><I>normalize the vector so that it has length unity returns the previous length of the vector</I>
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>General purpose float quad, uses include representation
of colour coordinates.
No support yet added for float * Vec4 - is it necessary?
Need to define a non-member non-friend operator* etc.
Vec4 * float is okay</BLOCKQUOTE>
<DL>
<A NAME="Vec4"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.1"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Vec4()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="Vec4"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Vec4(float <!1><A HREF="Vec4.html#DOC.2.110.12">x</A>, float <!1><A HREF="Vec4.html#DOC.2.110.13">y</A>, float <!1><A HREF="Vec4.html#DOC.2.110.14">z</A>, float <!1><A HREF="Vec4.html#DOC.2.110.15">w</A>)</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="_v"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.3"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>float _v[4]</B></TT>
<DL><DT><DD></DL><P>
<A NAME="operator == "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.4"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const bool operator == (const <!1><A HREF="Vec4.html">Vec4</A>&amp; v) const </B></TT>
<DL><DT><DD></DL><P>
2001-12-25 05:56:22 +08:00
<A NAME="operator != "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.5"></A>
2001-12-25 05:56:22 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const bool operator != (const <!1><A HREF="Vec4.html">Vec4</A>&amp; v) const </B></TT>
<DL><DT><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="operator < "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.6"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const bool operator < (const <!1><A HREF="Vec4.html">Vec4</A>&amp; v) const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="ptr"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.7"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float* ptr()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="ptr"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.8"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const float* ptr() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="set"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void set( float <!1><A HREF="Vec4.html#DOC.2.110.12">x</A>, float <!1><A HREF="Vec4.html#DOC.2.110.13">y</A>, float <!1><A HREF="Vec4.html#DOC.2.110.14">z</A>, float <!1><A HREF="Vec4.html#DOC.2.110.15">w</A>)</B></TT>
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="operator [] "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.10"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float&amp; operator [] (const int i)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="operator [] "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.11"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float operator [] (const int i) const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="x"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.12"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float&amp; x()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="y"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.13"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float&amp; y()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="z"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.14"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float&amp; z()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="w"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.15"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float&amp; w()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="x"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.16"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float x() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="y"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.17"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float y() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="z"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.18"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float z() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="w"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.19"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float w() const </B></TT>
<DL><DT><DD></DL><P>
2001-12-25 05:56:22 +08:00
<A NAME="valid"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.20"></A>
2001-12-25 05:56:22 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const bool valid() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="isNaN"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.21"></A>
2001-12-25 05:56:22 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const bool isNaN() const </B></TT>
<DL><DT><DD></DL><P>
2001-09-20 05:19:47 +08:00
<A NAME="operator * "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.22"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float operator * (const <!1><A HREF="Vec4.html">Vec4</A>&amp; rhs) const </B></TT>
<DD>dot product
<DL><DT><DD></DL><P>
<A NAME="operator * "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.23"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Vec4.html">Vec4</A> operator * (const float&amp; rhs) const </B></TT>
<DD>multiply by scalar
<DL><DT><DD></DL><P>
<A NAME="operator *= "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.24"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Vec4.html">Vec4</A>&amp; operator *= (const float&amp; rhs)</B></TT>
<DD>unary multiply by scalar
<DL><DT><DD></DL><P>
<A NAME="operator / "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.25"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Vec4.html">Vec4</A> operator / (const float&amp; rhs) const </B></TT>
<DD>divide by scalar
<DL><DT><DD></DL><P>
<A NAME="operator /= "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.26"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Vec4.html">Vec4</A>&amp; operator /= (const float&amp; rhs)</B></TT>
<DD>unary divide by scalar
<DL><DT><DD></DL><P>
<A NAME="operator + "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.27"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Vec4.html">Vec4</A> operator + (const <!1><A HREF="Vec4.html">Vec4</A>&amp; rhs) const </B></TT>
<DD>binary vector add
<DL><DT><DD></DL><P>
<A NAME="operator += "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.28"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Vec4.html">Vec4</A>&amp; operator += (const <!1><A HREF="Vec4.html">Vec4</A>&amp; rhs)</B></TT>
<DD>unary vector add. Slightly more efficient because no temporary
intermediate object
<DL><DT><DD></DL><P>
<A NAME="operator - "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.29"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Vec4.html">Vec4</A> operator - (const <!1><A HREF="Vec4.html">Vec4</A>&amp; rhs) const </B></TT>
2001-12-25 05:56:22 +08:00
<DD>binary vector subtract
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="operator -= "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.30"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Vec4.html">Vec4</A>&amp; operator -= (const <!1><A HREF="Vec4.html">Vec4</A>&amp; rhs)</B></TT>
2001-12-25 05:56:22 +08:00
<DD>unary vector subtract
2001-09-20 05:19:47 +08:00
<DL><DT><DD></DL><P>
<A NAME="operator - "></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.31"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="Vec4.html">Vec4</A> operator - () const </B></TT>
<DD>negation operator. Returns the negative of the Vec4
<DL><DT><DD></DL><P>
<A NAME="length"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.32"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const float length() const </B></TT>
<DD>Length of the vector = sqrt( vec . vec )
<DL><DT><DD></DL><P>
<A NAME="length2"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.33"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const float length2() const </B></TT>
<DD>Length squared of the vector = vec . vec
<DL><DT><DD></DL><P>
<A NAME="normalize"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.110.34"></A>
2001-09-20 05:19:47 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const float normalize()</B></TT>
<DD>normalize the vector so that it has length unity
returns the previous length of the vector
<DL><DT><DD></DL><P></DL>
<HR><DL><DT><B>This class has no child classes.</B></DL>
2001-12-25 05:56:22 +08:00
<DL><DT><DT><B>Friends:</B><DD> inline std::ostream& operator << (std::ostream& output, const <!1><A HREF="Vec4.html">Vec4</A>& vec)<BR><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
2001-09-20 05:19:47 +08:00
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>