public class

DestAreaRectangle

extends Object
java.lang.Object
   ↳ com.commsignia.v2x.client.model.DestAreaRectangle

Class Overview

Represents a destination area rectangle.

Summary

Nested Classes
class DestAreaRectangle.Builder Builder for destination area rectangle objects  
Public Constructors
DestAreaRectangle(long latitude, long longitude, double semiAxisA, LengthUnit semiAxisAUnit, double semiAxisB, LengthUnit semiAxisBUnit, double angle, DegreeUnit angleUnit)
Creates a new instance
Public Methods
boolean equals(Object o)
double getAngle(DegreeUnit unit)
Returns the azimuth angle of the long semi axis of the destination area rectangle.
long getLatitude()
Returns the current latitude value of the center point of the destination area rectangle.
long getLongitude()
Returns the longitude value of the center point of the destination area rectangle.
double getSemiAxisA(LengthUnit unit)
Returns the distance between the center point and the short side of the destination area rectangle.
double getSemiAxisB(LengthUnit unit)
Returns the distance between the center point and the long side of the destination area rectangle.
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DestAreaRectangle (long latitude, long longitude, double semiAxisA, LengthUnit semiAxisAUnit, double semiAxisB, LengthUnit semiAxisBUnit, double angle, DegreeUnit angleUnit)

Creates a new instance

Parameters
latitude latitude in 0.1 microdegrees
longitude longitude in 0.1 microdegrees
semiAxisA semi axis A value
semiAxisAUnit semi axis A unit
semiAxisB semi axis B value
semiAxisBUnit semi axis B unit
angle angle value
angleUnit angle unit

Public Methods

public boolean equals (Object o)

public double getAngle (DegreeUnit unit)

Returns the azimuth angle of the long semi axis of the destination area rectangle.

Parameters
unit target unit
Returns
  • the azimuth angle of the long semi axis (semiAxisA) in the specified units

public long getLatitude ()

Returns the current latitude value of the center point of the destination area rectangle.

Returns
  • latitude of the center point of the rectangle in 0.1 microdegrees

public long getLongitude ()

Returns the longitude value of the center point of the destination area rectangle.

Returns
  • longitude of the center point of the rectangle in 0.1 microdegrees

public double getSemiAxisA (LengthUnit unit)

Returns the distance between the center point and the short side of the destination area rectangle.

Parameters
unit target unit
Returns
  • semiAxisA of the rectangle in the specified units

public double getSemiAxisB (LengthUnit unit)

Returns the distance between the center point and the long side of the destination area rectangle.

Parameters
unit target unit
Returns
  • semiAxisB of the rectangle in the specified units

public int hashCode ()

public String toString ()