Skip to content

Axis2D

Canonical path: NemAll_Python_Geometry.Axis2D

Representation class for 2D Axis

AxisPoint property writable

AxisPoint: Point2D

Get axis point in world coordinate system.

AxisRefPoint property writable

AxisRefPoint: Point2D

Get reference point.

AxisRelPoint property writable

AxisRelPoint: Point2D

Get axis point in local coordinate system

AxisVector property writable

AxisVector: Vector2D

Get axis vector

GetAxisPoint

GetAxisPoint() -> Point2D

Get axis point in world coordinate system.

Returns:

  • Point2D

    Axis point in world coordinates

GetAxisPoint2

GetAxisPoint2() -> Point2D

Get second axis point. Used world coordinate system.

Returns:

  • Point2D

    Second axis point in world coordinates

GetAxisRelPoint

GetAxisRelPoint() -> Point2D

Get axis point in local coordinate system

Returns:

  • Point2D

    Axis point in local coordinates

GetAxisRelPoint2

GetAxisRelPoint2() -> Point2D

Get second axis point. Used local coordinate system

Returns:

  • Point2D

    Second axis point in local coordinates

GetRefPoint

GetRefPoint() -> Point2D

Get reference point.

Returns:

GetVector

GetVector() -> Vector2D

Get axis vector

Returns:

Set overloaded

Set(axis: Axis2D)

Set axis

Parameters:

  • axis (Axis2D) –

    Axis which will be copied

Set(refPoint: Point2D, axisPoint: Point2D, vector: Vector2D)

Set axis

Used local coordinate system for axisPoint

Parameters:

SetAxisPoint

SetAxisPoint(point: Point2D)

Set axis point, used world coordinate system.

Parameters:

  • point (Point2D) –

    Axis point in world coordinates

SetAxisRelPoint

SetAxisRelPoint(axisPoint: Point2D)

Set axis point, used local coordinate system.

Parameters:

  • axisPoint (Point2D) –

    Axis point in local coordinates

SetRefPoint

SetRefPoint(refPoint: Point2D)

Set reference point

Parameters:

  • refPoint (Point2D) –

    New reference point

SetVector

SetVector(vector: Vector2D)

Set axis vector

Parameters:

__eq__

__eq__(axis: Axis2D) -> bool

Comparison of axes.

Be careful, this method work without tolerance!

Parameters:

  • axis (Axis2D) –

    axis to be compared.

Returns:

  • bool

    True when axes are equal, otherwise false.

__init__ overloaded

__init__()

Initialize

__init__(axis: Axis2D)

Copy constructor.

Parameters:

  • axis (Axis2D) –

    Axis which will be copied

__init__(axisPoint: Point2D, vector: Vector2D)

Constructor.

Reference point is initialized to [0.,0.] Used world coordinate system for AxisPoint

Parameters:

__init__(refPoint: Point2D, axisPoint: Point2D, vector: Vector2D)

Constructor.

Used local coordinate system for AxisPoint

Parameters:

__init__(line: Line2D)

Explicit constructor from Line2D

Parameters:

__repr__

__repr__() -> str

Convert to string

Placeholder