org.bytedeco.opencv.opencv_core.Point3i Maven / Gradle / Ivy
The newest version!
// Targeted by JavaCPP version 1.5.10: DO NOT EDIT THIS FILE
package org.bytedeco.opencv.opencv_core;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.openblas.global.openblas_nolapack.*;
import static org.bytedeco.openblas.global.openblas.*;
import static org.bytedeco.opencv.global.opencv_core.*;
// namespace
//////////////////////////////// Point3_ ////////////////////////////////
/** \brief Template class for 3D points specified by its coordinates {@code x}, {@code y} and {@code z}.
An instance of the class is interchangeable with the C structure CvPoint2D32f . Similarly to
Point_ , the coordinates of 3D points can be converted to another type. The vector arithmetic and
comparison operations are also supported.
The following Point3_\<\> aliases are available:
{@code
typedef Point3_ Point3i;
typedef Point3_ Point3f;
typedef Point3_ Point3d;
}
@see cv::Point3i, cv::Point3f and cv::Point3d
*/
@Name("cv::Point3_") @NoOffset @Properties(inherit = org.bytedeco.opencv.presets.opencv_core.class)
public class Point3i extends IntPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Point3i(Pointer p) { super(p); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public Point3i(long size) { super((Pointer)null); allocateArray(size); }
private native void allocateArray(long size);
@Override public Point3i position(long position) {
return (Point3i)super.position(position);
}
@Override public Point3i getPointer(long i) {
return new Point3i((Pointer)this).offsetAddress(i);
}
/** default constructor */
public Point3i() { super((Pointer)null); allocate(); }
private native void allocate();
public Point3i(int _x, int _y, int _z) { super((Pointer)null); allocate(_x, _y, _z); }
private native void allocate(int _x, int _y, int _z);
// #if OPENCV_ABI_COMPATIBILITY < 500
public Point3i(@Const @ByRef Point3i pt) { super((Pointer)null); allocate(pt); }
private native void allocate(@Const @ByRef Point3i pt);
// #endif
public Point3i(@Const @ByRef Point pt) { super((Pointer)null); allocate(pt); }
private native void allocate(@Const @ByRef Point pt);
// #if OPENCV_ABI_COMPATIBILITY < 500
public native @ByRef @Name("operator =") Point3i put(@Const @ByRef Point3i pt);
// #endif
/** conversion to another data type */
/** conversion to cv::Vec<> */
/** dot product */
public native int dot(@Const @ByRef Point3i pt);
/** dot product computed in double-precision arithmetics */
public native double ddot(@Const @ByRef Point3i pt);
/** cross product of the 2 3D points */
public native @ByVal Point3i cross(@Const @ByRef Point3i pt);
/** x coordinate of the 3D point */
public native int x(); public native Point3i x(int setter);
/** y coordinate of the 3D point */
public native int y(); public native Point3i y(int setter);
/** z coordinate of the 3D point */
public native int z(); public native Point3i z(int setter);
}