opensolid/geometry/3.0.1

NOTE: this package is not compatible with Elm 0.19.1

Circle3d

Circle3d

A Circle3d is defined by its center point, axial direction and radius. The axial direction is the direction of the axis through the center of the circle that all points on the circle are equidistant from, or equivalently the normal direction of the plane defined by the circle. This module contains functionality for:

  • Constructing circles around axes, on planes, or through points
  • Scaling, rotating and translating circles
  • Extracting circle properties like center point and area
type alias Circle3d =
Circle3d

Constructors

withRadius : Float -> Direction3d -> Point3d -> Circle3d
sweptAround : Axis3d -> Point3d -> Circle3d
on : SketchPlane3d -> Circle2d -> Circle3d
throughPoints : Point3d -> Point3d -> Point3d -> Maybe Circle3d

Properties

centerPoint : Circle3d -> Point3d
axialDirection : Circle3d -> Direction3d
radius : Circle3d -> Float
diameter : Circle3d -> Float
axis : Circle3d -> Axis3d
plane : Circle3d -> Plane3d
area : Circle3d -> Float
circumference : Circle3d -> Float
boundingBox : Circle3d -> BoundingBox3d

Transformations

scaleAbout : Point3d -> Float -> Circle3d -> Circle3d
rotateAround : Axis3d -> Float -> Circle3d -> Circle3d
translateBy : Vector3d -> Circle3d -> Circle3d
translateIn : Direction3d -> Float -> Circle3d -> Circle3d
mirrorAcross : Plane3d -> Circle3d -> Circle3d
projectInto : SketchPlane3d -> Circle3d -> Ellipse2d

Coordinate conversions

relativeTo : Frame3d -> Circle3d -> Circle3d
placeIn : Frame3d -> Circle3d -> Circle3d