From fd36956061b3400b0502348b8758e08c1755b8c6 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 29 Mar 2012 11:17:04 -0300 Subject: [PATCH] Reformatted the VectorPy docstrings for better aspect in sphinx docs --- src/Base/VectorPy.xml | 73 ++++++++++++++++++++++++++++++++----------- 1 file changed, 55 insertions(+), 18 deletions(-) diff --git a/src/Base/VectorPy.xml b/src/Base/VectorPy.xml index 4171ac2a1..6286e4b27 100644 --- a/src/Base/VectorPy.xml +++ b/src/Base/VectorPy.xml @@ -20,90 +20,127 @@ - add(Vector) - return the sum of the two vectors + add(Vector) + returns the sum of this and another vector + - sub(Vector) - return the difference of the two vectors + sub(Vector) + returns the difference of this and another vector + - scale(Float,Float,Float) - scale (multiplies) this vector by a factor + scale(Float,Float,Float) + scales (multiplies) this vector by a factor + - multiply(Float) - multiplies (scales) this vector by a single factor + multiply(Float) + multiplies (scales) this vector by a single factor + - dot(Vector) - return the dot product of the two vectors + dot(Vector) + returns the dot product of the this vector with another one + - cross(Vector) - return the cross product of the two vectors + cross(Vector) + returns the cross product between this and another vector + - getAngle(Vector) - return the angle in radians between the two vectors + getAngle(Vector) + returns the angle in radians between this and another vector + - Normalize the vector to the length of 1.0 + normalize() + normalizes the vector to the length of 1.0 + - Deliver the projection point to a given line + projectToLine(Vector,Vector) + projects the vector on a line defined by a base point and a direction + - Deliver the projection point to a given plane + projectToPlane(Vector,Vector) + projects the vector on a plane defined by a base point and a normal + - Deliver the distance of the point to a given line + distanceToLine(Vector,Vector) + returns the distance between this vector and a line defined by + a base point and a direction + - Deliver the distance of the point to a given line segment + distanceToLineSegment(Vector,Vector) + returns the distance between this vector and a line segment defined by + a base point and a direction + - Deliver the distance of the point to a given plane + distanceToPlane(Vector,Vector) + returns the distance between this vector and a plane defined by + a base point and a normal + - To read or modifiy the length of the vector + Length([Float]) -> Float + gets or sets the length of this vector + - The X component of the vector + x([Float]) -> Float + gets or sets the X component of this vector + - The Y component of the vector + y([Float]) -> Float + gets or sets the Y component of this vector + - The Z component of the vector + z([Float]) -> Float + gets or sets the Z component of this vector + @@ -128,4 +165,4 @@ { return *(getVectorPtr()); } - +