Click or drag to resize

Utils Methods

The Utils type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCheckThreePointsOnLinearityWithCrossproduct Checks if point P is on the same line as defined by points S and E.
Public methodStatic memberCheckThreePointsOnLinearityWithDistance Checks if point P is on the same line as defined by points S and E. The distance h must not be bigger than delta, and b must be bigger than c.
Public methodStatic memberConvertEllipseElevationAngleToPhaseAngle Converts the elevation angle eta of the ellipse with semi axes a and b, the orientation angle phi into the phase angle theta.
Public methodStatic memberConvertEllipsePhaseAngleToElevationAngle Converts the phase angle of an ellipse as used in the SP-ICE 3 API into an elevation angle as used in Microsoft's ellipse definition.
Public methodStatic memberEvaluateEllipse2D Evaluates the point at phase angle theta (not elevation angle!) on the ellipse with semi axes a and b and orientation angle phi (angles measured counterclockwise).
Public methodStatic memberGetCircleCenter Returns the center of the circle defined by three points on the arc.
Public methodStatic memberGetCommandHeading Returns the heading of the command at the start and end.
Public methodStatic memberGetIntersection Returns the intersection of two 2D lines.
Public methodStatic memberGetPlane Returns the plane defined by three points.
Public methodStatic memberGetPointPlaneDistance Returns the smallest distance between a plane and a point.
Public methodStatic memberGetProjectionAxis Returns the index of the projected axis.
Public methodStatic memberGetProjectionMatrix Gets the matrix needed for projecting.
Public methodStatic memberGetRotation(dmat4) Calculates the rotation around the z axis.
Public methodStatic memberGetRotation(dmat4, bvec3) Calculates the rotation around the z axis.
Public methodStatic memberGetScaleAbs Calculates the x and y scale.
Public methodStatic memberGetScaleAbs3D Calculates the x, y and z scale.
Public methodStatic memberGetScaleAbsRotation(dmat4, dvec2, Double) Gets rotation and absolute scale.
Public methodStatic memberGetScaleAbsRotation(dmat4, bvec3, dvec2, Double) Gets z-rotation and absolute xy-scale.
Public methodStatic memberGetScaleAbsRotation3D(dmat4, dvec3, dvec3) Gets rotation and absolute scale.
Public methodStatic memberGetScaleAbsRotation3D(dmat4, bvec3, dvec3, dvec3) Gets rotation and absolute scale.
Public methodStatic memberGetTransformation(dvec3, dvec3, dvec3) Returns matrix defined by scale, rotation and offset.
Public methodStatic memberGetTransformation(Double, Double, Double, Double, Double, Double, Double, Double, Double) Returns matrix defined by scale, rotation and offset.
Public Extension MethodProjectRotation Returns the rotation value for the provided axes. Note: Returns -y for Y, as the XZ axis is a rotation around -Y axis.
Public Extension MethodTo3D Converts the two dimensional vector to 3D by inserting a value for the other axis.
Public Extension MethodToProjection(dvec3, CartesianAxis) Returns the two dimensional projection of the tree dimensional vector.
Public Extension MethodToProjection(dvec3, CartesianAxis, CartesianAxis) Returns the value of the projected axis.
Public methodStatic memberTransformPoint Transforms the point with the given transformation
Top
See Also