opensolid/geometry/3.0.1

NOTE: this package is not compatible with Elm 0.19.1

Axis3d

Axis3d

An Axis3d represents an infinitely long straight line in 3D and is defined by an origin point and direction. Axes have several uses, such as:

  • Rotating around the axis
  • Projecting onto the axis
  • Measuring distance along the axis from the origin point
type alias Axis3d =
Axis3d

Constants

x : Axis3d
y : Axis3d
z : Axis3d

Constructors

through : Point3d -> Direction3d -> Axis3d
withDirection : Direction3d -> Point3d -> Axis3d
on : SketchPlane3d -> Axis2d -> Axis3d

Properties

originPoint : Axis3d -> Point3d
direction : Axis3d -> Direction3d

Transformations

reverse : Axis3d -> Axis3d
moveTo : Point3d -> Axis3d -> Axis3d
rotateAround : Axis3d -> Float -> Axis3d -> Axis3d
translateBy : Vector3d -> Axis3d -> Axis3d
translateIn : Direction3d -> Float -> Axis3d -> Axis3d
mirrorAcross : Plane3d -> Axis3d -> Axis3d
projectOnto : Plane3d -> Axis3d -> Maybe Axis3d

Coordinate conversions

Functions for transforming axes between local and global coordinates in different coordinate frames.

relativeTo : Frame3d -> Axis3d -> Axis3d
placeIn : Frame3d -> Axis3d -> Axis3d
projectInto : SketchPlane3d -> Axis3d -> Maybe Axis2d