@Name(value="cv::Rect_") @NoOffset public static class opencv_core.Rectf extends FloatPointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
opencv_core.Rectf()
various constructors
|
opencv_core.Rectf(float _x,
float _y,
float _width,
float _height) |
opencv_core.Rectf(long size)
Native array allocator.
|
opencv_core.Rectf(opencv_core.Point2f pt1,
opencv_core.Point2f pt2) |
opencv_core.Rectf(opencv_core.Point2f org,
opencv_core.Size2f sz) |
opencv_core.Rectf(opencv_core.Rectf r) |
opencv_core.Rectf(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
area()
area (width*height) of the rectangle
|
opencv_core.Point2f |
br()
the bottom-right corner
|
boolean |
contains(opencv_core.Point2f pt)
checks whether the rectangle contains the point
|
float |
height() |
opencv_core.Rectf |
height(float height) |
opencv_core.Rectf |
position(long position) |
opencv_core.Rectf |
put(opencv_core.Rectf r) |
opencv_core.Size2f |
size()
size (width, height) of the rectangle
|
opencv_core.Point2f |
tl()
the top-left corner
|
float |
width() |
opencv_core.Rectf |
width(float width) |
float |
x() |
opencv_core.Rectf |
x(float x) |
float |
y() |
opencv_core.Rectf |
y(float y) |
asBuffer, capacity, get, get, get, get, limit, put, put, put, putaddress, asByteBuffer, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, maxBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, position, put, setNull, sizeof, toString, totalBytes, withDeallocator, zeropublic opencv_core.Rectf(Pointer p)
Pointer.Pointer(Pointer).public opencv_core.Rectf(long size)
Pointer.position(long).public opencv_core.Rectf()
public opencv_core.Rectf(float _x,
float _y,
float _width,
float _height)
public opencv_core.Rectf(@Const@ByRef opencv_core.Rectf r)
public opencv_core.Rectf(@Const@ByRef opencv_core.Point2f org, @Const@ByRef opencv_core.Size2f sz)
public opencv_core.Rectf(@Const@ByRef opencv_core.Point2f pt1, @Const@ByRef opencv_core.Point2f pt2)
public opencv_core.Rectf position(long position)
position in class FloatPointer@ByRef @Name(value="operator =") public opencv_core.Rectf put(@Const@ByRef opencv_core.Rectf r)
@ByVal public opencv_core.Point2f tl()
@ByVal public opencv_core.Point2f br()
@ByVal public opencv_core.Size2f size()
public float area()
@Cast(value="bool") public boolean contains(@Const@ByRef opencv_core.Point2f pt)
public float x()
public opencv_core.Rectf x(float x)
public float y()
public opencv_core.Rectf y(float y)
public float width()
public opencv_core.Rectf width(float width)
public float height()
public opencv_core.Rectf height(float height)
Copyright © 2016. All rights reserved.