Package org.photonvision.targeting
Class TargetCorner
java.lang.Object
org.photonvision.targeting.TargetCorner
- All Implemented Interfaces:
ProtobufSerializable
,WPISerializable
,PhotonStructSerializable<TargetCorner>
public class TargetCorner
extends Object
implements ProtobufSerializable, PhotonStructSerializable<TargetCorner>
Represents a point in an image at the corner of the minimum-area bounding rectangle, in pixels.
Origin at the top left, plus-x to the right, plus-y down.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TargetCornerSerde
static final TargetCornerProto
double
double
-
Constructor Summary
-
Method Summary
-
Field Details
-
x
public double x -
y
public double y -
proto
-
photonStruct
-
-
Constructor Details
-
TargetCorner
public TargetCorner(double cx, double cy) -
TargetCorner
public TargetCorner()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
getSerde
- Specified by:
getSerde
in interfacePhotonStructSerializable<TargetCorner>
-