Computes angles between supported geometric entities.
Angles can be computed for the following inputs:
Returns NaN if the angle cannot be computed for the provided inputs.
new Angle():
Angle
Angle
staticcompute(firstFace,secondFace,firstFaceTransformation?,secondFaceTransformation?):number
Computes the angle between two planar B-Rep faces.
The result is the smaller geometric angle between the underlying planes in the range [0, PI / 2]. Returns NaN if one of the faces is not based on a plane or if the measurement cannot be evaluated from the available data.
First face.
Second face.
Transformation | null
Optional transformation applied to the first face.
Transformation | null
Optional transformation applied to the second face.
number
staticcompute(firstEdge,secondEdge,firstEdgeTransformation?,secondEdgeTransformation?):number
Computes the angle between two linear B-Rep edges.
The result is in the range [0, PI]. Returns NaN if one of the edges is not based on a line or if the measurement cannot be evaluated from the available data.
First edge.
Second edge.
Transformation | null
Optional transformation applied to the first edge.
Transformation | null
Optional transformation applied to the second edge.
number
staticcompute(firstVertex,secondVertex,thirdVertex,firstVertexTransformation?,secondVertexTransformation?,thirdVertexTransformation?):number
Computes the angle defined by three B-Rep vertices.
The angle vertex is the second argument. The result is in the range [0, PI]. Returns NaN if the angle is undefined.
First vertex.
Vertex at which the angle is measured.
Third vertex.
Transformation | null
Optional transformation applied to the first vertex.
Transformation | null
Optional transformation applied to the second vertex.
Transformation | null
Optional transformation applied to the third vertex.
number
staticcompute(firstPoint,secondPoint,thirdPoint,firstPointTransformation?,secondPointTransformation?,thirdPointTransformation?):number
Computes the angle defined by three 3D points.
The angle point is the second argument. The result is in the range [0, PI]. Returns NaN if the angle is undefined.
First point.
Point at which the angle is measured.
Third point.
Transformation | null
Optional transformation applied to the first point.
Transformation | null
Optional transformation applied to the second point.
Transformation | null
Optional transformation applied to the third point.
number