@Name(value="cv::Rect_<double>") @NoOffset @Properties(inherit=opencv_core.class) public class Rect2d extends DoublePointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Rect2d()
default constructor
|
Rect2d(double _x,
double _y,
double _width,
double _height) |
Rect2d(long size)
Native array allocator.
|
Rect2d(Point2d pt1,
Point2d pt2) |
Rect2d(Point2d org,
Size2d sz) |
Rect2d(Pointer p)
Pointer cast constructor.
|
Rect2d(Rect2d r) |
Modifier and Type | Method and Description |
---|---|
double |
area()
area (width*height) of the rectangle
|
Point2d |
br()
the bottom-right corner
|
boolean |
contains(Point2d pt)
checks whether the rectangle contains the point
|
boolean |
empty()
true if empty
|
double |
height()
height of the rectangle
|
Rect2d |
height(double setter) |
Rect2d |
position(long position) |
Rect2d |
put(Rect2d r) |
Size2d |
size()
size (width, height) of the rectangle
|
Point2d |
tl()
the top-left corner
|
double |
width()
width of the rectangle
|
Rect2d |
width(double setter) |
double |
x()
x coordinate of the top-left corner
|
Rect2d |
x(double setter) |
double |
y()
y coordinate of the top-left corner
|
Rect2d |
y(double setter) |
asBuffer, capacity, get, get, get, get, limit, put, put, put, put, sizeof
address, asByteBuffer, availablePhysicalBytes, calloc, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public Rect2d(Pointer p)
Pointer.Pointer(Pointer)
.public Rect2d(long size)
Pointer.position(long)
.public Rect2d()
public Rect2d(double _x, double _y, double _width, double _height)
public Rect2d position(long position)
position
in class DoublePointer
public double area()
@Cast(value="bool") public boolean contains(@Const @ByRef Point2d pt)
public double x()
public Rect2d x(double setter)
public double y()
public Rect2d y(double setter)
public double width()
public Rect2d width(double setter)
public double height()
public Rect2d height(double setter)
Copyright © 2020. All rights reserved.