Show / Hide Table of Contents

    Class Cv.Vec3d

    Inheritance
    Object
    HandleCppPtr
    Cv.Vec3d
    Inherited Members
    HandleCppPtr.DeleteResponsibility
    HandleCppPtr.CppPtr
    Namespace: ArucoUnity.Plugin
    Assembly: Assembly-CSharp.dll
    Syntax
    public class Vec3d : HandleCppPtr

    Constructors

    | Improve this Doc View Source

    Vec3d(Double, Double, Double)

    Declaration
    public Vec3d(double v0 = 0, double v1 = 0, double v2 = 0)
    Parameters
    Type Name Description
    Double v0
    Double v1
    Double v2
    | Improve this Doc View Source

    Vec3d(IntPtr, DeleteResponsibility)

    Declaration
    public Vec3d(IntPtr vec3dPtr, DeleteResponsibility deleteResponsibility = DeleteResponsibility.True)
    Parameters
    Type Name Description
    IntPtr vec3dPtr
    DeleteResponsibility deleteResponsibility

    Methods

    | Improve this Doc View Source

    DeleteCppPtr()

    Declaration
    protected override void DeleteCppPtr()
    Overrides
    HandleCppPtr.DeleteCppPtr()
    | Improve this Doc View Source

    Get(Int32)

    Declaration
    public double Get(int i)
    Parameters
    Type Name Description
    Int32 i
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    Set(Int32, Double)

    Declaration
    public void Set(int i, double value)
    Parameters
    Type Name Description
    Int32 i
    Double value
    | Improve this Doc View Source

    ToPosition()

    Converts the Vec3d as an OpenCV's translation vector to a Vector3.

    Declaration
    public Vector3 ToPosition()
    Returns
    Type Description
    Vector3

    The converted vector.

    | Improve this Doc View Source

    ToRotation()

    Converts the Vec3d as an OpenCV's rotation vector to a Quaternion. Based on: http://www.euclideanspace.com/maths/geometry/rotations/conversions/angleToQuaternion/

    Declaration
    public Quaternion ToRotation()
    Returns
    Type Description
    Quaternion

    The converted quaternion.

    • Improve this Doc
    • View Source
    Back to top Aruco Unity - Erwan Normand