%%PageItemTitle%% $$Methods$$

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
vdgeo Class Methods
See Also 
vdWebLibrary Namespace : vdgeo Class

For a list of all members of this type, see vdgeo members.

Public Methods

 NameDescription
Public MethodAreEqual Checks if the difference between the two numerical values is smaller or larger than the equality passed as the third parameter.  
Public MethodDegreesToRadians Converts the passed value in degress to radians.  
Public MethodDistance2D Calculates and returns the distance between the two passed points.  
Public MethodDistance3D Calculates and returns the distance between the two passed points in three dimensions.  
Public MethodFixAngle Makes sure that the angle passed as parameter is restrained between 0 and 2PI radians. Also checks if the angle is equal to one of the main angles of the circle and depending on the equality parameter, returns the fixed value whithout any digits.  
Public MethodGetAngle Calculates and returns the angle two points form. This is done by comparing the two vectors formed with starting point the 0,0,0 and ending points the two passed parameters.  
Public MethodGetPlineSegmentIndexFromPoint Finds the closed segment of the polyline a passed point  
Public MethodMidPoint Calculates and returns a point that lies in the middle of the two passed points.  
Public Methodnewpoint Creates and returns a new 3 sized Array object. The first element of the Array represents the x value of the point, the second element the y value and the third the z value.  
Public Methodnewvertex Creates and returns a new 4 sized Array object. The first element of the Array represents the x value of the vertex, the second element the y vertex, the third the z vertex and the fourth the bulge of the vertex.  
Public MethodPointInRegion Returns true if the given point is inside the region defined by the given points.  
Public MethodpointPolar Calculates and returns a vdgeo.newpoint at a given distance and angle from the passed point.  
Public MethodRadiansToDegrees Converts the passed value in radians to degrees.  
Public MethodVectorDirection Gets the direction set by two points.  
Top

See Also