| 
 | OpenCV 2.4.8 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencv.core.Point3
public class Point3
template
// C++ code:
public:
typedef _Tp value_type;
// various constructors
Point3_();
Point3_(_Tp _x, _Tp _y, _Tp _z);
Point3_(const Point3_& pt);
explicit Point3_(const Point_<_Tp>& pt);
Point3_(const CvPoint3D32f& pt);
Point3_(const Vec<_Tp, 3>& v);
Point3_& operator = (const Point3_& pt);
//! conversion to another data type
template
//! conversion to the old-style CvPoint...
operator CvPoint3D32f() const;
//! conversion to cv.Vec<>
operator Vec<_Tp, 3>() const;
//! dot product
_Tp dot(const Point3_& pt) const;
//! dot product computed in double-precision arithmetics
double ddot(const Point3_& pt) const;
//! cross product of the 2 3D points
Point3_ cross(const Point3_& pt) const;
_Tp x, y, z; //< the point coordinates
};
Template class for 3D points specified by its coordinates
x, y and 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: 
// C++ code:
typedef Point3_
typedef Point3_
typedef Point3_
| Field Summary | |
|---|---|
|  double | x | 
|  double | y | 
|  double | z | 
| Constructor Summary | |
|---|---|
| Point3() | |
| Point3(double[] vals) | |
| Point3(double x,
       double y,
       double z) | |
| Point3(Point p) | |
| Method Summary | |
|---|---|
|  Point3 | clone() | 
|  Point3 | cross(Point3 p) | 
|  double | dot(Point3 p) | 
|  boolean | equals(java.lang.Object obj) | 
|  int | hashCode() | 
|  void | set(double[] vals) | 
|  java.lang.String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public double x
public double y
public double z
| Constructor Detail | 
|---|
public Point3()
public Point3(double[] vals)
public Point3(double x,
              double y,
              double z)
public Point3(Point p)
| Method Detail | 
|---|
public Point3 clone()
clone in class java.lang.Objectpublic Point3 cross(Point3 p)
public double dot(Point3 p)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void set(double[] vals)
public java.lang.String toString()
toString in class java.lang.Object| 
 | OpenCV 2.4.8 Documentation | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||