@Name(value="cv::Rect_<float>") @NoOffset @Properties(inherit=opencv_core.class) public class Rect2f extends FloatPointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Rect2f()
default constructor
|
Rect2f(float _x,
float _y,
float _width,
float _height) |
Rect2f(long size)
Native array allocator.
|
Rect2f(Point2f pt1,
Point2f pt2) |
Rect2f(Point2f org,
Size2f sz) |
Rect2f(Pointer p)
Pointer cast constructor.
|
Rect2f(Rect2f r) |
Modifier and Type | Method and Description |
---|---|
float |
area()
area (width*height) of the rectangle
|
Point2f |
br()
the bottom-right corner
|
boolean |
contains(Point2f pt)
checks whether the rectangle contains the point
|
boolean |
empty()
true if empty
|
float |
height()
height of the rectangle
|
Rect2f |
height(float setter) |
Rect2f |
position(long position) |
Rect2f |
put(Rect2f r) |
Size2f |
size()
size (width, height) of the rectangle
|
Point2f |
tl()
the top-left corner
|
float |
width()
width of the rectangle
|
Rect2f |
width(float setter) |
float |
x()
x coordinate of the top-left corner
|
Rect2f |
x(float setter) |
float |
y()
y coordinate of the top-left corner
|
Rect2f |
y(float 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 Rect2f(Pointer p)
Pointer.Pointer(Pointer)
.public Rect2f(long size)
Pointer.position(long)
.public Rect2f()
public Rect2f(float _x, float _y, float _width, float _height)
public Rect2f position(long position)
position
in class FloatPointer
public float area()
@Cast(value="bool") public boolean contains(@Const @ByRef Point2f pt)
public float x()
public Rect2f x(float setter)
public float y()
public Rect2f y(float setter)
public float width()
public Rect2f width(float setter)
public float height()
public Rect2f height(float setter)
Copyright © 2020. All rights reserved.