Class VL_Math
- Namespace
- VirtualLab.Programming
- Assembly
- VirtualLab.Programming.dll
This class provides various mathematical functions.
public static class VL_Math
- Inheritance
-
VL_Math
- Inherited Members
Methods
Acos(Complex)
Returns the angle that is the arc cosine of the specified complex number.
public static Complex Acos(this Complex complex)
Parameters
complexComplexA complex number that represents a cosine.
Returns
- Complex
The angle, measured in radians, which is the arc cosine of the given complex.
Asin(Complex)
Returns the angle that is the arc sine of the specified complex number.
public static Complex Asin(this Complex complex)
Parameters
complexComplexA complex number that represents a sine.
Returns
- Complex
The angle, measured in radians, which is the arc sine of the given complex.
IntersectionLineAndPlane(PositionedLine, OrientedPlane, out PositionRelationOfGeometricalObjects)
Calculates the intersection of a line and a plane. Both have to be defined in reference to the same coordinate system.
public static Position IntersectionLineAndPlane(PositionedLine line, OrientedPlane plane, out PositionRelationOfGeometricalObjects relation)
Parameters
linePositionedLineLine to search the intersection with plane for.
planeOrientedPlanePlane to search the intersection with line for.
relationPositionRelationOfGeometricalObjectsReturns the type of position relation between the line and the plane.
Returns
- Position
The position of the intersection referring to the same coordinate system the line and plane are defined in.
PointToLineDistance(Position, PositionedLine, out Position)
Calculates the distance from one position to a line.
public static double PointToLineDistance(Position position, PositionedLine line, out Position nearestPoint)
Parameters
positionPositionPosition to calculate the distance to the line for. It has to refer to the same reference coordinate system as the line.
linePositionedLineLine to calculate the distance to the point for.
nearestPointPositionThe point on the line which is nearest to the point given.
Returns
- double
Distance from point to line.
PointToLineDistance(Vector3D, PositionedLine, out Position)
Calculates the distance from one point to a line.
public static double PointToLineDistance(Vector3D point, PositionedLine line, out Position nearestPoint)
Parameters
pointVector3DPosition to calculate the distance to the line for. It is assumed the coordinates refer to the same reference coordinate system as the line.
linePositionedLineLine to calculate the distance to the point for.
nearestPointPositionThe point on the line which is nearest to the point given.
Returns
- double
Distance from point to line.
PointToPlaneDistance(Position, OrientedPlane)
Calculates the positive distance from one point to a plane.
public static double PointToPlaneDistance(Position position, OrientedPlane plane)
Parameters
positionPositionPosition to calculate the distance to the plane for. It has to refer to the same reference coordinate system as the plane.
planeOrientedPlanePlane to calculate the distance to the point for.
Returns
- double
Positive distance from point to plane.
PointToPlaneDistance(Vector3D, OrientedPlane)
Calculates the positive distance from one point to a plane.
public static double PointToPlaneDistance(Vector3D point, OrientedPlane plane)
Parameters
pointVector3DPosition to calculate the distance to the plane for. It is assumed the coordinates refer to the same reference coordinate system as the plane.
planeOrientedPlanePlane to calculate the distance to the point for.
Returns
- double
Positive distance from point to plane.
PointToPointDistance(Position, Position)
Calculates the absolute value of the distance between two positions.
public static double PointToPointDistance(Position position1, Position position2)
Parameters
position1PositionPosition to calculate the distance to position2 for. It has to refer to the same reference coordinate system as the other position.
position2PositionPosition to calculate the distance to position1 for. It has to refer to the same reference coordinate system as the other position.
Returns
- double
Absolute value of the distance vector between position1 and position2.
PointToPointDistance(Vector3D, Vector3D)
Calculates the absolute value of the distance between two positions.
public static double PointToPointDistance(Vector3D position1, Vector3D position2)
Parameters
position1Vector3DPosition to calculate the distance to position2 for. It is assumed the coordinates refer to the same reference coordinate system as the other position.
position2Vector3DPosition to calculate the distance to position1 for. It is assumed the coordinates refer to the same reference coordinate system as the other position.
Returns
- double
Absolute value of the distance vector between position1 and position2.