|
ActiveLib
|
Classes | |
| struct | AlongLengthOf |
| class | Arc |
| Class to represent an arc. More... | |
| class | Box |
| struct | ComparePosition |
| class | Faceter |
| A class to divide an arc into facets. More... | |
| class | Leveller |
| Class to reorientate geometric objects to a horizontal plane. More... | |
| class | Line |
| Class to represent a line. More... | |
| class | LinEquation |
| Class to represent a linear equation. More... | |
| class | Matrix3x3 |
| A 3x3 matrix class. More... | |
| class | Matrix4x4 |
| A 4x4 matrix class. More... | |
| class | Plane |
| Class to represent a plane. More... | |
| class | Point |
| class | PolyEdge |
| class | Polygon |
| class | PolyPoint |
| class | PolyVector |
| A vector of polygons. More... | |
| class | Rotater |
| Base class for rotation classes. More... | |
| class | Vector3 |
| A 1x3 vector class. More... | |
| class | Vector4 |
| A 1x4 vector class. More... | |
| class | XInfo |
| class | XList |
| class | XPoint |
| class | XRotater |
| Class to perform rotations in the x axis. More... | |
| class | YRotater |
| Class to perform rotations in the y axis. More... | |
| class | ZRotater |
| Class to perform rotations in the z axis. More... | |
Typedefs | |
| using | vertex_index = int32_t |
| Index of a vertex, e.g. within a polygon. | |
| using | vertOption = std::optional<vertex_index> |
| Optional vertex index (for an undefined or missing vertex index) | |
| using | part_index = int32_t |
| Index of a part, e.g. a hole within a polygon. | |
| using | partOption = std::optional<part_index> |
| Optional part index (for an undefined or missing part index) | |
| using | vertex_id = uint32_t |
Enumerations | |
| enum | OrdinalX { leftX = 0 , centreX , rightX } |
| Ordinals in the X axis. | |
| enum | OrdinalY { frontY = 0 , halfY , backY } |
| Ordinals in the Y axis. | |
| enum | OrdinalZ { bottomZ = 0 , middleZ , topZ } |
| Ordinals in the Z axis. | |
| enum class | Anchor2D { leftFront = (frontY * 3) + leftX , centreFront = (frontY * 3) + centreX , rightFront = (frontY * 3) + rightX , leftHalf = (halfY * 3) + leftX , centreHalf = (halfY * 3) + centreX , rightHalf = (halfY * 3) + rightX , leftBack = (backY * 3) + leftX , centreBack = (backY * 3) + centreX , rightBack = (backY * 3) + rightX } |
| Anchor positions in 2D. | |
| enum class | Position { undefined = 0x00 , after = 0x01 , origin = 0x02 , along = 0x04 , end = 0x08 , before = 0x10 , radial = 0x20 , outside = 0x01 , inside = 0x10 , left = 0x01 , right = 0x10 , front = 0x10 , back = 0x01 , within = along | end | origin , vertex = end | origin , former = along | origin , latter = along | end , all = before | origin | along | end | after | radial } |
| Relative spatial position. More... | |
| enum class | Rotation { clockwise , anticlockwise } |
| Arc direction of travel. More... | |
Functions | |
| std::optional< Anchor2D > | toAnchor2D (const utility::String &text) |
| utility::String | fromAnchor2D (Anchor2D anchor) |
| Position | operator| (Position left, Position right) |
| Position | operator& (Position left, Position right) |
Copyright 2024 Ralph Wessel and Hugh Wessel Distributed under the MIT License (See accompanying file LICENSE.txt or copy at https://opensource.org/license/mit/)
|
strong |
Relative spatial position.
|
strong |
Arc direction of travel.
| Enumerator | |
|---|---|
| clockwise | Clockwise direction. |
| anticlockwise | Anti-clockwise direction. |
Get the text for a Anchor2D value
| anchor | The incoming anchor |

| std::optional< Anchor2D > active::geometry::toAnchor2D | ( | const utility::String & | text | ) |
Get an Anchor2D enumerator from text
| text | The incoming text |