Logo Search packages:      
Sourcecode: blender version File versions

MT_Vector2 Class Reference

#include <MT_Vector2.h>

Inheritance diagram for MT_Vector2:

MT_Tuple2 MT_Point2

List of all members.


Detailed Description

Id
MT_Vector2.h,v 1.6 2002/12/26 18:25:15 mein Exp
***** BEGIN GPL/BL DUAL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The Blender Foundation also sells licenses for use in proprietary software under the Blender License. See http://www.blender.org/BL/ for information about this.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.

The Original Code is: all of this file.

Contributor(s): none yet.

***** END GPL/BL DUAL LICENSE BLOCK *****

Definition at line 52 of file MT_Vector2.h.


Public Member Functions

MT_Vector2 absolute () const
MT_Scalar angle (const MT_Vector2 &v) const
int closestAxis () const
MT_Vector2 cross (const MT_Vector2 &v) const
MT_Scalar dot (const MT_Vector2 &v) const
bool fuzzyZero () const
void getValue (double *vv) const
void getValue (float *vv) const
const MT_Scalar * getValue () const
MT_Scalar * getValue ()
MT_Scalar length () const
MT_Scalar length2 () const
 MT_Vector2 (MT_Scalar xx, MT_Scalar yy)
 MT_Vector2 (const double *v)
 MT_Vector2 (const float *v)
void normalize ()
MT_Vector2 normalized () const
MT_Vector2operator*= (MT_Scalar s)
MT_Vector2operator+= (const MT_Vector2 &v)
MT_Vector2operator-= (const MT_Vector2 &v)
MT_Vector2operator/= (MT_Scalar s)
const MT_Scalar & operator[] (int i) const
MT_Scalar & operator[] (int i)
void scale (MT_Scalar x, MT_Scalar y)
MT_Vector2 scaled (MT_Scalar x, MT_Scalar y) const
void setValue (MT_Scalar xx, MT_Scalar yy)
void setValue (const double *vv)
void setValue (const float *vv)
MT_Scalar triple (const MT_Vector2 &v1, const MT_Vector2 &v2) const
const MT_Scalar & u () const
MT_Scalar & u ()
const MT_Scalar & v () const
MT_Scalar & v ()
const MT_Scalar & x () const
MT_Scalar & x ()
const MT_Scalar & y () const
MT_Scalar & y ()

Static Public Member Functions

static MT_Vector2 random ()

Protected Attributes

MT_Scalar m_co [2]

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index