Geometry¶
Geometry functions.
- design3d.geometry.angle_principal_measure(angle, min_angle=-3.141592653589793)[source]¶
Returns angle between O and 2 pi.
- design3d.geometry.clockwise_angle(vector1, vector2)[source]¶
Return the clockwise angle in radians between vector1 and vector2.
- design3d.geometry.clockwise_interior_from_circle3d(start, end, circle)[source]¶
Returns the clockwise interior point between start and end on the circle.
- design3d.geometry.cos_image(x1: float, x2: float) Tuple[float, float] [source]¶
Returns the interval image of cosinus function between two values.
- design3d.geometry.direction_to_euler_angles(u: Vector3D, v=None)[source]¶
Returns one possibility of euler angles from a vector indicating a direction.
- design3d.geometry.euler_angles_to_transfer_matrix(psi, theta, phi)[source]¶
Give Transition Matrix from euler angles.
Angles in radians
- design3d.geometry.get_transfer_matrix_from_basis(basis_a, basis_b)[source]¶
Get the matrix of tranformation that applied to the basis A gives basis B.
- design3d.geometry.huygens2d(Ix, Iy, Ixy, area, point1, point2)[source]¶
Area acts the same way as the mass in 3D.
- design3d.geometry.offset_angle(trigo, angle_start, angle_end)[source]¶
Calculates the offset and angle.
Seems unused
- design3d.geometry.sin_cos_angle(u1, u2)[source]¶
Returns an angle between 0 and 2*PI verifying cos(theta)=u1, sin(theta)=u2.
- Parameters:
u1 (float) – The value of the cosinus of the returned angle
u2 (float) – The value of the sinus of the returned angle
- Returns:
The angle verifying the two equations
- Return type:
float
- design3d.geometry.sin_image(x1: float, x2: float) Tuple[float, float] [source]¶
Returns the interval image of sinus function between two values.
- design3d.geometry.transfer_matrix_to_euler_angles(r_matrix)[source]¶
Returns the Euler angle from a transfer matrix.
- design3d.geometry.vectors3d_angle(vector1, vector2)[source]¶
Computes the angle between two 3 dimensional vectors.
- Parameters:
vector1 (
design3d.Vector3D
) – The fist 3 dimensional vectorvector2 (
design3d.Vector3D
) – The second 3 dimensional vectors
- Returns:
The angle between the two vectors
- Return type:
float