draftlibs::fcvec Namespace Reference

Functions

def angle
def dist
def equals
def find
def getPlaneRotation
def isColinear
def isNull
def neg
def precision
def project
def removeDoubles
def rotate
def rotate2D
def rounded
def scale
def scaleTo
def tup
def typecheck

Variables

string __author__ = "Yorik van Havre, Werner Mayer, Martin Burbaum, Ken Cline"
string __title__ = "FreeCAD Draft Workbench - Vector library"
list __url__ = ["http://free-cad.sourceforge.net"]
tuple params = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft")

Function Documentation

def draftlibs::fcvec::angle (   u,
  v = Vector(1,0,
  normal = Vector(0,0 
)
def draftlibs::fcvec::dist (   u,
  v 
)
def draftlibs::fcvec::equals (   u,
  v 
)

Definition at line 56 of file fcvec.py.

def draftlibs::fcvec::find (   vector,
  vlist 
)
def draftlibs::fcvec::getPlaneRotation (   u,
  v,
  w = None 
)

Definition at line 175 of file fcvec.py.

def draftlibs::fcvec::isColinear (   vlist  ) 
isColinear(list_of_vectors): checks if vectors in given list are colinear

Definition at line 160 of file fcvec.py.

def draftlibs::fcvec::isNull (   vector  ) 
isNull(vector): Tests if a vector is nul vector

Definition at line 145 of file fcvec.py.

def draftlibs::fcvec::neg (   u  ) 

Definition at line 51 of file fcvec.py.

Referenced by Base::Rotation::slerp().

def draftlibs::fcvec::precision (  ) 

Definition at line 34 of file fcvec.py.

def draftlibs::fcvec::project (   u,
  v 
)

Definition at line 103 of file fcvec.py.

def draftlibs::fcvec::removeDoubles (   vlist  ) 

Definition at line 186 of file fcvec.py.

def draftlibs::fcvec::rotate (   u,
  angle,
  axis = Vector(0,0 
)
rotate(Vector,Float,axis=Vector): rotates the first Vector
around the given axis, at the given angle.
If axis is omitted, the rotation is made on the xy plane.

Definition at line 116 of file fcvec.py.

def draftlibs::fcvec::rotate2D (   u,
  angle 
)

Definition at line 111 of file fcvec.py.

def draftlibs::fcvec::rounded (   v  ) 

Definition at line 170 of file fcvec.py.

def draftlibs::fcvec::scale (   u,
  scalar 
)

Definition at line 61 of file fcvec.py.

def draftlibs::fcvec::scaleTo (   u,
  l 
)

Definition at line 66 of file fcvec.py.

def draftlibs::fcvec::tup (   u,
  array = False 
)
def draftlibs::fcvec::typecheck (   args_and_types,
  name = "?" 
)

Definition at line 37 of file fcvec.py.


Variable Documentation

string draftlibs::fcvec::__author__ = "Yorik van Havre, Werner Mayer, Martin Burbaum, Ken Cline"

Definition at line 25 of file fcvec.py.

string draftlibs::fcvec::__title__ = "FreeCAD Draft Workbench - Vector library"

Definition at line 24 of file fcvec.py.

list draftlibs::fcvec::__url__ = ["http://free-cad.sourceforge.net"]

Definition at line 26 of file fcvec.py.

tuple draftlibs::fcvec::params = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft")

Definition at line 33 of file fcvec.py.


Generated on Wed Nov 23 19:01:54 2011 for FreeCAD by  doxygen 1.6.1