Classes | |
| class | Blade |
Functions | |
| def | getDistance |
| VECTORS. More... | |
| def | getDistance2 |
| Get the distance between two objects. More... | |
| def | trigo_opp |
| def | trigo_adj |
| def | getDistanceToAxe |
| def | getOrthocentre |
| def | getOrthocentreDistances |
| def | linearlyInterpolate |
| Get a vector that is the interpolation of the two input vector. More... | |
| def | rotateVectorAlongAxis |
| Get a vector that is the rotation of first vector along an axis. More... | |
| def | getPlaneNormal |
| Get the normal vector of a plane (Defined by 3 positions). More... | |
| def | getPlaneBiNormal |
| Get the binormal vector of a plane (Defined by 3 positions). More... | |
| def | getBladeNormal |
| Get the normal vector of a blade. More... | |
| def | getBladeNormalFromXml |
| def | getBladeBiNormal |
| Get the binormal vector of a blade. More... | |
| def | getBladeBiNormalFromXml |
| def | getTransposedVector |
| Get the transposed vector. More... | |
| def | getDegreeAngleFromPlane |
| Get the transposed vector. More... | |
| def | drawVector |
| Help method to draw a curve that represent a vector. More... | |
This file is part of GEAR_mc. GEAR_mc is a fork of Jeremie Passerin's GEAR project. GEAR is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/lgpl.html>. Author: Jeremie Passerin geerem@hotmail.com www.jeremiepasserin.com Fork Author: Miquel Campos hello@miqueltd.com www.miqueltd.com Date: 2013 / 08 / 16
| def gear.xsi.vector.drawVector | ( | vector, | |
name = "vector", |
|||
parent = xsi.ActiveSceneRoot |
|||
| ) |
Help method to draw a curve that represent a vector.
| vector | SIVector - vector to draw. |
| name | String - name of the vector. |
| parent | XSI3DObject - parent object. (Used to move a vector at the position of an object). |
| def gear.xsi.vector.getBladeBiNormal | ( | blade | ) |
Get the binormal vector of a blade.
A Blade is a 3 points curve that define a plane.
| blade | NurbCurve. |
| def gear.xsi.vector.getBladeNormal | ( | blade | ) |
Get the normal vector of a blade.
A Blade is a 3 points curve that define a plane.
| blade | NurbCurve. |
| def gear.xsi.vector.getDegreeAngleFromPlane | ( | positions0, | |
| positions1 | |||
| ) |
Get the transposed vector.
| positions0 | List of SIVector - first plane position. |
| positions1 | List of SIVector - second plane position. |
| def gear.xsi.vector.getDistance | ( | v0, | |
| v1 | |||
| ) |
VECTORS.
getDistance ============================================ Get the distance between two positions.
| v0 | SIVector3 - First position. |
| v1 | SIVector3 - Second position. |
| def gear.xsi.vector.getDistance2 | ( | obj0, | |
| obj1 | |||
| ) |
Get the distance between two objects.
| obj0 | X3DObject - First object. |
| obj1 | X3DObject - Second object. |
| def gear.xsi.vector.getPlaneBiNormal | ( | v0, | |
| v1, | |||
| v2 | |||
| ) |
Get the binormal vector of a plane (Defined by 3 positions).
| v0 | SIVector3 - First position on the plane. |
| v1 | SIVector3 - Second position on the plane. |
| v2 | SIVector3 - Third position on the plane. |
| def gear.xsi.vector.getPlaneNormal | ( | v0, | |
| v1, | |||
| v2 | |||
| ) |
Get the normal vector of a plane (Defined by 3 positions).
| v0 | SIVector3 - First position on the plane. |
| v1 | SIVector3 - Second position on the plane. |
| v2 | SIVector3 - Third position on the plane. |
| def gear.xsi.vector.getTransposedVector | ( | v, | |
| position0, | |||
| position1, | |||
inverse = False |
|||
| ) |
Get the transposed vector.
| v | SIVector - vector to transpose. |
| position0 | SIVector - original position. |
| position1 | SIVector - new position. |
| inverse | Boolean - True to inverse the orientation. |
| def gear.xsi.vector.linearlyInterpolate | ( | v0, | |
| v1, | |||
blend = .5 |
|||
| ) |
Get a vector that is the interpolation of the two input vector.
This method is not limitied to a 0-1
| v0 | SIVector3 - First position. |
| v1 | SIVector3 - Second position. |
| blend | Double - Blend between the two vectors. (0 return the first vector, 1 return the second vector) |
| def gear.xsi.vector.rotateVectorAlongAxis | ( | v, | |
| axis, | |||
a = 0 |
|||
| ) |
Get a vector that is the rotation of first vector along an axis.
Angle must be in radians.
| v | SIVector3 - Vector to transform. |
| axis | SIVector3 - Vector use as axes. |
| a | Double - Angle in radians. |
1.8.5