Package openalea :: Package plantgl :: Package math :: Module _pglmath :: Class Vector2
[frames] | no frames]

Class Vector2

 object --+    
          |    
??.instance --+
              |
             Vector2

Nested Classes
  Polar
Instance Methods
 
__abs__(...)
__abs__( (Vector2)arg1) -> Vector2 : Returns the absolute value of self.
 
__add__(...)
__add__( (Vector2)arg1, (Vector2)arg2) -> object :
 
__dir__(...)
__dir__( (Vector2)arg1) -> Vector2 : Returns the direction of self.
 
__div__(...)
__div__( (Vector2)arg1, (float)arg2) -> object :
 
__eq__(...)
__eq__( (Vector2)arg1, (Vector2)arg2) -> object :
 
__getinitargs__(...)
__getinitargs__( (Vector2)arg1) -> tuple :
 
__getitem__(...)
__getitem__( (Vector2)arg1, (int)arg2) -> float :
 
__iadd__(...)
__iadd__( (object)arg1, (Vector2)arg2) -> object :
 
__idiv__(...)
__idiv__( (object)arg1, (float)arg2) -> object :
 
__init__(...)
__init__( (object)arg1, (Vector2)v) -> None : Vector2(Vector2 v)
 
__len__(...)
__len__( (Vector2)arg1) -> float :
 
__mul__(...)
__mul__( (Vector2)arg1, (float)arg2) -> object :
 
__ne__(...)
__ne__( (Vector2)arg1, (Vector2)arg2) -> object :
 
__neg__(...)
__neg__( (Vector2)arg1) -> object :
 
__normL1__(...)
__normL1__( (Vector2)arg1) -> float : Returns the L1 (Manhattan) norm of self.
 
__normLinf__(...)
__normLinf__( (Vector2)arg1) -> float : Returns the L-infinite norm of self.
 
__normSquared__(...)
__normSquared__( (Vector2)arg1) -> float : Returns the square of the norm of self.
 
__norm__(...)
__norm__( (Vector2)arg1) -> float : Returns the norm of self.
 
__reduce__(...)
helper for pickle
 
__repr__(...)
__repr__( (Vector2)arg1) -> str :
 
__setitem__(...)
__setitem__( (Vector2)arg1, (int)arg2, (float)arg3) -> None :
 
__str__(...)
__str__( (Vector2)arg1) -> object :
 
__sub__(...)
__sub__( (Vector2)arg1, (Vector2)arg2) -> object :
 
__xor__(...)
__xor__( (Vector2)arg1, (Vector2)arg2) -> object :
 
getMaxAbsCoord(...)
getMaxAbsCoord( (Vector2)arg1) -> int : Returns the index of the maximum absolute coordinate.
 
getMinAbsCoord(...)
getMinAbsCoord( (Vector2)arg1) -> int : Returns the index of the minimum absolute coordinate.
 
isNormalized(...)
isNormalized( (Vector2)arg1) -> bool : Returns whether self is normalized.
 
isOrthogonalTo(...)
isOrthogonalTo( (Vector2)arg1, (Vector2)v) -> bool : Returns whether self is orthogonal to v.
 
isValid(...)
isValid( (Vector2)arg1) -> bool : Returns whether self is valid.
 
normalize(...)
normalize( (Vector2)arg1) -> float : Normalizes self and returns the norm before.

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__

Class Variables
  __instance_size__ = 32
  __safe_for_unpickling__ = True
Properties
  ORIGIN
  OX
  OY
  x
  y

Inherited from object: __class__

Method Details

__abs__(...)

 

__abs__( (Vector2)arg1) -> Vector2 :
    Returns the absolute value of self.

    C++ signature :
        class TOOLS::Vector2 __abs__(class TOOLS::Vector2)

__add__(...)
(Addition operator)

 

__add__( (Vector2)arg1, (Vector2)arg2) -> object :

    C++ signature :
        struct _object * __add__(class TOOLS::Vector2 {lvalue},class TOOLS::Vector2)

__dir__(...)

 

__dir__( (Vector2)arg1) -> Vector2 :
    Returns the direction of self.

    C++ signature :
        class TOOLS::Vector2 __dir__(class TOOLS::Vector2)

__div__(...)

 

__div__( (Vector2)arg1, (float)arg2) -> object :

    C++ signature :
        struct _object * __div__(class TOOLS::Vector2 {lvalue},double)

__eq__(...)
(Equality operator)

 

__eq__( (Vector2)arg1, (Vector2)arg2) -> object :

    C++ signature :
        struct _object * __eq__(class TOOLS::Vector2 {lvalue},class TOOLS::Vector2)

__getinitargs__(...)

 

__getinitargs__( (Vector2)arg1) -> tuple :

    C++ signature :
        class boost::python::tuple __getinitargs__(class TOOLS::Vector2)

__getitem__(...)
(Indexing operator)

 

__getitem__( (Vector2)arg1, (int)arg2) -> float :

    C++ signature :
        double __getitem__(class TOOLS::Vector2 *,unsigned int)

__iadd__(...)

 

__iadd__( (object)arg1, (Vector2)arg2) -> object :

    C++ signature :
        struct _object * __iadd__(struct boost::python::back_reference<class TOOLS::Vector2 &>,class TOOLS::Vector2)

__idiv__(...)

 

__idiv__( (object)arg1, (float)arg2) -> object :

    C++ signature :
        struct _object * __idiv__(struct boost::python::back_reference<class TOOLS::Vector2 &>,double)

__init__(...)
(Constructor)

 

__init__( (object)arg1, (Vector2)v) -> None :
    Vector2(Vector2 v)

    C++ signature :
        void __init__(struct _object *,class TOOLS::Vector2)

__init__( (object)arg1 [, (float)x [, (float)y]]) -> None :
    Vector2(real_t x , real_t y)

    C++ signature :
        void __init__(struct _object * [,double [,double]])

__init__( (object)arg1, (Polar)p) -> None :
    Vector2(Polar p)

    C++ signature :
        void __init__(struct _object *,struct TOOLS::Vector2::Polar)

Overrides: object.__init__

__len__(...)
(Length operator)

 

__len__( (Vector2)arg1) -> float :

    C++ signature :
        double __len__(class TOOLS::Vector2 *)

__mul__(...)

 

__mul__( (Vector2)arg1, (float)arg2) -> object :

    C++ signature :
        struct _object * __mul__(class TOOLS::Vector2 {lvalue},double)

__mul__( (Vector2)arg1, (Vector2)arg2) -> object :

    C++ signature :
        struct _object * __mul__(class TOOLS::Vector2 {lvalue},class TOOLS::Vector2)

__ne__(...)

 

__ne__( (Vector2)arg1, (Vector2)arg2) -> object :

    C++ signature :
        struct _object * __ne__(class TOOLS::Vector2 {lvalue},class TOOLS::Vector2)

__neg__(...)

 

__neg__( (Vector2)arg1) -> object :

    C++ signature :
        struct _object * __neg__(class TOOLS::Vector2 {lvalue})

__normL1__(...)

 

__normL1__( (Vector2)arg1) -> float :
    Returns the L1 (Manhattan) norm of self.

    C++ signature :
        double __normL1__(class TOOLS::Vector2)

__normLinf__(...)

 

__normLinf__( (Vector2)arg1) -> float :
    Returns the L-infinite norm of self.

    C++ signature :
        double __normLinf__(class TOOLS::Vector2)

__normSquared__(...)

 

__normSquared__( (Vector2)arg1) -> float :
    Returns the square of the norm of self.

    C++ signature :
        double __normSquared__(class TOOLS::Vector2)

__norm__(...)

 

__norm__( (Vector2)arg1) -> float :
    Returns the norm of self.

    C++ signature :
        double __norm__(class TOOLS::Vector2)

__reduce__(...)

 
helper for pickle

Overrides: object.__reduce__
(inherited documentation)

__repr__(...)
(Representation operator)

 

__repr__( (Vector2)arg1) -> str :

    C++ signature :
        class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __repr__(class TOOLS::Vector2 *)

Overrides: object.__repr__

__setitem__(...)
(Index assignment operator)

 

__setitem__( (Vector2)arg1, (int)arg2, (float)arg3) -> None :

    C++ signature :
        void __setitem__(class TOOLS::Vector2 *,unsigned int,double)

__str__(...)
(Informal representation operator)

 

__str__( (Vector2)arg1) -> object :

    C++ signature :
        struct _object * __str__(class TOOLS::Vector2 {lvalue})

__str__( (Vector2)arg1) -> str :

    C++ signature :
        class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __str__(class TOOLS::Vector2 *)

Overrides: object.__str__

__sub__(...)
(Subtraction operator)

 

__sub__( (Vector2)arg1, (Vector2)arg2) -> object :

    C++ signature :
        struct _object * __sub__(class TOOLS::Vector2 {lvalue},class TOOLS::Vector2)

__xor__(...)
(Exclusive-Or operator)

 

__xor__( (Vector2)arg1, (Vector2)arg2) -> object :

    C++ signature :
        struct _object * __xor__(class TOOLS::Vector2 {lvalue},class TOOLS::Vector2)

getMaxAbsCoord(...)

 

getMaxAbsCoord( (Vector2)arg1) -> int :
    Returns the index of the maximum absolute coordinate.

    C++ signature :
        int getMaxAbsCoord(class TOOLS::Vector2 {lvalue})

getMinAbsCoord(...)

 

getMinAbsCoord( (Vector2)arg1) -> int :
    Returns the index of the minimum absolute coordinate.

    C++ signature :
        int getMinAbsCoord(class TOOLS::Vector2 {lvalue})

isNormalized(...)

 

isNormalized( (Vector2)arg1) -> bool :
    Returns whether self is normalized.

    C++ signature :
        bool isNormalized(class TOOLS::Vector2 {lvalue})

isOrthogonalTo(...)

 

isOrthogonalTo( (Vector2)arg1, (Vector2)v) -> bool :
    Returns whether self is orthogonal to v.

    C++ signature :
        bool isOrthogonalTo(class TOOLS::Vector2 {lvalue},class TOOLS::Vector2)

isValid(...)

 

isValid( (Vector2)arg1) -> bool :
    Returns whether self is valid.

    C++ signature :
        bool isValid(class TOOLS::Vector2 {lvalue})

normalize(...)

 

normalize( (Vector2)arg1) -> float :
    Normalizes self and returns the norm before.

    C++ signature :
        double normalize(class TOOLS::Vector2 {lvalue})


Property Details

ORIGIN

Get Method:
unreachable(...)

OX

Get Method:
unreachable(...)

OY

Get Method:
unreachable(...)

x

Get Method:
unreachable(...)
Set Method:
unreachable(...)

y

Get Method:
unreachable(...)
Set Method:
unreachable(...)