opensolid/geometry/3.0.1

NOTE: this package is not compatible with Elm 0.19.1

Plane3d

Plane3d

A Plane3d is an infinite flat plane in 3D. It is defined by an origin point and normal direction and is useful for several operations including:

  • Mirroring across the plane
  • Projecting onto the plane
  • Measuring distance from the plane
type alias Plane3d =
Plane3d

Constants

xy : Plane3d
yz : Plane3d
zx : Plane3d

Constructors

through : Point3d -> Direction3d -> Plane3d
withNormalDirection : Direction3d -> Point3d -> Plane3d
throughPoints : Point3d -> Point3d -> Point3d -> Maybe Plane3d

Properties

originPoint : Plane3d -> Point3d
normalDirection : Plane3d -> Direction3d
normalAxis : Plane3d -> Axis3d

Transformations

offsetBy : Float -> Plane3d -> Plane3d
reverseNormal : Plane3d -> Plane3d
rotateAround : Axis3d -> Float -> Plane3d -> Plane3d
translateBy : Vector3d -> Plane3d -> Plane3d
translateIn : Direction3d -> Float -> Plane3d -> Plane3d
moveTo : Point3d -> Plane3d -> Plane3d
mirrorAcross : Plane3d -> Plane3d -> Plane3d

Coordinate conversions

relativeTo : Frame3d -> Plane3d -> Plane3d
placeIn : Frame3d -> Plane3d -> Plane3d