mrpt.math
Package Contents
- class mrpt.math.CHistogram(min: float, max: float, nBins: int)
C++ API: class mrpt::math::CHistogram
- add(arg0: float) None
- clear() None
- getBinCount(arg0: int) int
- getBinRatio(arg0: int) float
- getHistogram() tuple
Returns (bin_centers, hit_counts) as two lists
- getHistogramNormalized() tuple
Returns (bin_centers, normalized_hits) — integral equals 1 as PDF
- class mrpt.math.CMatrixDouble
- class mrpt.math.CMatrixDouble(arg0: int, arg1: int)
- class mrpt.math.CMatrixDouble(arg0: numpy.ndarray)
- as_numpy() numpy.ndarray
- class mrpt.math.CPolygon
C++ API: class mrpt::math::CPolygon
Bases:
mrpt.serialization.CSerializable- add_vertex(x: float, y: float) None
- get_vertex_x(arg0: int) float
- get_vertex_y(arg0: int) float
- get_vertices() tuple
Returns (xs, ys) as two lists of vertex coordinates
- set_vertices(arg0: list[float], arg1: list[float]) None
- class mrpt.math.CVectorDouble
- class mrpt.math.CVectorDouble(arg0: int)
- class mrpt.math.CVectorDouble(arg0: numpy.ndarray)
- as_numpy() numpy.ndarray
- class mrpt.math.TBoundingBox(arg0: TPoint3D, arg1: TPoint3D)
-
- static PlusMinusInfinity() TBoundingBox
- intersection(arg0: TBoundingBox) Any
- unionWith(arg0: TBoundingBox) TBoundingBox
- volume() float
- class mrpt.math.TBoundingBoxf(arg0: TPoint3Df, arg1: TPoint3Df)
-
- static PlusMinusInfinity() TBoundingBoxf
- unionWith(arg0: TBoundingBoxf) TBoundingBoxf
- volume() float
- class mrpt.math.TLine2D
C++ API: struct mrpt::math::TLine2D
TLine2D(arg0: TPoint2D, arg1: TPoint2D) TLine2D(A: float, B: float, C: float)
- coefs: list[float]
- unitarize() None
- class mrpt.math.TLine3D
C++ API: struct mrpt::math::TLine3D
TLine3D(arg0: TPoint3D, arg1: TPoint3D)
- unitarize() None
- class mrpt.math.TPlane
C++ API: struct mrpt::math::TPlane
TPlane(A: float, B: float, C: float, D: float) TPlane(arg0: TPoint3D, arg1: TPoint3D, arg2: TPoint3D)
- coefs: list[float]
- unitarize() None
- class mrpt.math.TPoint2D
- class mrpt.math.TPoint2D(arg0: float, arg1: float)
- class mrpt.math.TPoint2D(arg0: list[float])
- x: float
- y: float
- cast_float() Any
- norm() float
- sqrNorm() float
- class mrpt.math.TPoint2Df
- class mrpt.math.TPoint2Df(arg0: float, arg1: float)
- class mrpt.math.TPoint2Df(arg0: list[float])
- x: float
- y: float
- norm() float
- sqrNorm() float
- class mrpt.math.TPoint3D
- class mrpt.math.TPoint3D(arg0: float, arg1: float, arg2: float)
- class mrpt.math.TPoint3D(arg0: list[float])
- x: float
- y: float
- z: float
- cast_float() Any
- norm() float
- sqrNorm() float
- class mrpt.math.TPoint3Df
- class mrpt.math.TPoint3Df(arg0: float, arg1: float, arg2: float)
- class mrpt.math.TPoint3Df(arg0: list[float])
- x: float
- y: float
- z: float
- norm() float
- sqrNorm() float
- class mrpt.math.TPose2D
C++ API: struct mrpt::math::TPose2D
TPose2D(arg0: float, arg1: float, arg2: float) TPose2D(arg0: list[float])
- phi: float
- x: float
- y: float
- norm() float
- normalizePhi() None
- class mrpt.math.TPose3D
C++ API: struct mrpt::math::TPose3D
TPose3D(arg0: float, arg1: float, arg2: float, arg3: float, arg4: float, arg5: float) TPose3D(arg0: list[float])
- pitch: float
- roll: float
- x: float
- y: float
- yaw: float
- z: float
- getHomogeneousMatrix() CMatrixDouble44
- getRotationMatrix() CMatrixDouble33
- norm() float
- class mrpt.math.TPose3DQuat
C++ API: struct mrpt::math::TPose3DQuat
TPose3DQuat(x: float, y: float, z: float, qr: float, qx: float, qy: float, qz: float)
- qr: float
- qx: float
- qy: float
- qz: float
- x: float
- y: float
- z: float
- class mrpt.math.TSegment2D
C++ API: struct mrpt::math::TSegment2D
TSegment2D(arg0: TPoint2D, arg1: TPoint2D)
- static FromPoints(arg0: TPoint2D, arg1: TPoint2D) TSegment2D
- length() float
- class mrpt.math.TSegment3D
C++ API: struct mrpt::math::TSegment3D
TSegment3D(arg0: TPoint3D, arg1: TPoint3D)
- length() float
- class mrpt.math.TTwist2D
C++ API: struct mrpt::math::TTwist2D
TTwist2D(vx: float, vy: float, omega: float)
- omega: float
- vx: float
- vy: float
- asString() str
- rotate(arg0: float) None
- class mrpt.math.TTwist3D
C++ API: struct mrpt::math::TTwist3D
TTwist3D(vx: float, vy: float, vz: float, wx: float, wy: float, wz: float)
- vx: float
- vy: float
- vz: float
- wx: float
- wy: float
- wz: float
- asString() str
- mrpt.math.wrapTo2Pi(arg0: float) float
Wrap angle to [0, 2*pi]
- mrpt.math.wrapToPi(arg0: float) float
Wrap angle to [-pi, pi]