Package com.irurueta.navigation.frames
Class NEDVelocity
java.lang.Object
com.irurueta.navigation.frames.NEDVelocity
- All Implemented Interfaces:
Serializable
,Cloneable
Contains body velocity with respect Earth, resolved about north, east and down an expressed in meters per second
(m/s).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double
Coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along Down axis.private double
Coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along East axis.private double
Coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along North axis. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.NEDVelocity
(double vn, double ve, double vd) Constructor.NEDVelocity
(NEDVelocity input) Constructor.NEDVelocity
(com.irurueta.units.Speed vn, com.irurueta.units.Speed ve, com.irurueta.units.Speed vd) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
clone()
Makes a copy of this instance.void
copyFrom
(NEDVelocity input) Copies data of provided instance into this instance.void
copyTo
(NEDVelocity output) Copies this instance data into provided instance.boolean
equals
(NEDVelocity other) Checks if provided instance has exactly the same contents as this instance.boolean
equals
(NEDVelocity other, double threshold) Checks if provided instance has contents similar to this instance up to provided threshold value.boolean
Checks if provided object is a BodyVelocity having exactly the same contents as this instance.double
getNorm()
Gets norm of velocity expressed in meters per second (m/s), which represents the speed of the body.com.irurueta.units.Speed
Gets norm of velocity, which represents the speed of the body.void
getNormAsSpeed
(com.irurueta.units.Speed result) Gets norm of velocity, which represents the speed of the body.com.irurueta.units.Speed
Gets coordinate of velocity of body frame with respect ECEF frame and resolved along Down axis.void
getSpeedD
(com.irurueta.units.Speed result) Gets coordinate of velocity of body frame with respect ECEF frame and resolved along Down axis.com.irurueta.units.Speed
Gets coordinate of velocity of body frame with respect ECEF frame and resolved along East axis.void
getSpeedE
(com.irurueta.units.Speed result) Gets coordinate of velocity of body frame with respect ECEF frame and resolved along East axis.com.irurueta.units.Speed
Gets coordinate of velocity of body frame with respect ECEF frame and resolved along North axis.void
getSpeedN
(com.irurueta.units.Speed result) Gets coordinate of velocity of body frame with respect ECEF frame and resolved along North axis.double
getVd()
Gets coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along Down axis.double
getVe()
Gets coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along East axis.double
getVn()
Gets coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along North axis.int
hashCode()
Computes and returns hash code for this instance.void
setCoordinates
(double vn, double ve, double vd) Sets velocity coordinates of body frame expressed in meters per second (m/s) resolved along North, East, Down axes.void
setCoordinates
(com.irurueta.units.Speed speedN, com.irurueta.units.Speed speedE, com.irurueta.units.Speed speedD) Sets velocity coordinates of body frame resolved along North, East, Down axes.void
setSpeedD
(com.irurueta.units.Speed speedD) Sets coordinate of velocity of body frame with respect ECEF frame and resolved along Down axis.void
setSpeedE
(com.irurueta.units.Speed speedE) Sets coordinate of velocity of body frame with respect ECEF frame and resolved along East axis.void
setSpeedN
(com.irurueta.units.Speed speedN) Sets coordinate of velocity of body frame with respect ECEF frame and resolved along North axis.void
setVd
(double vd) Sets coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along Down axis.void
setVe
(double ve) Sets coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along East axis.void
setVn
(double vn) Sets coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along North axis.
-
Field Details
-
vn
private double vnCoordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along North axis. -
ve
private double veCoordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along East axis. -
vd
private double vdCoordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along Down axis.
-
-
Constructor Details
-
NEDVelocity
public NEDVelocity()Constructor. -
NEDVelocity
public NEDVelocity(double vn, double ve, double vd) Constructor.- Parameters:
vn
- North velocity coordinate value expressed in meters per second (m/s).ve
- East velocity coordinate value expressed in meters per second (m/s).vd
- Down velocity coordinate value expressed in meters per second (m/s).
-
NEDVelocity
public NEDVelocity(com.irurueta.units.Speed vn, com.irurueta.units.Speed ve, com.irurueta.units.Speed vd) Constructor.- Parameters:
vn
- North velocity coordinate value.ve
- East velocity coordinate value.vd
- Down velocity coordinate value.
-
-
Method Details
-
getVn
public double getVn()Gets coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along North axis.- Returns:
- North velocity coordinate value.
-
setVn
public void setVn(double vn) Sets coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along North axis.- Parameters:
vn
- North velocity coordinate value.
-
getVe
public double getVe()Gets coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along East axis.- Returns:
- East velocity coordinate value.
-
setVe
public void setVe(double ve) Sets coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along East axis.- Parameters:
ve
- East velocity coordinate value.
-
getVd
public double getVd()Gets coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along Down axis.- Returns:
- Down velocity coordinate value.
-
setVd
public void setVd(double vd) Sets coordinate of velocity of body frame expressed in meters per second (m/s) with respect ECEF frame and resolved along Down axis.- Parameters:
vd
- Down velocity coordinate value.
-
setCoordinates
public void setCoordinates(double vn, double ve, double vd) Sets velocity coordinates of body frame expressed in meters per second (m/s) resolved along North, East, Down axes.- Parameters:
vn
- North velocity coordinate value.ve
- East velocity coordinate value.vd
- Down velocity coordinate value.
-
getNorm
public double getNorm()Gets norm of velocity expressed in meters per second (m/s), which represents the speed of the body.- Returns:
- norm of velocity expressed in meters per second (m/s).
-
getNormAsSpeed
public void getNormAsSpeed(com.irurueta.units.Speed result) Gets norm of velocity, which represents the speed of the body.- Parameters:
result
- velocity norm.
-
getNormAsSpeed
public com.irurueta.units.Speed getNormAsSpeed()Gets norm of velocity, which represents the speed of the body.- Returns:
- velocity norm.
-
getSpeedN
public void getSpeedN(com.irurueta.units.Speed result) Gets coordinate of velocity of body frame with respect ECEF frame and resolved along North axis.- Parameters:
result
- instance where North velocity coordinate will be stored.
-
getSpeedN
public com.irurueta.units.Speed getSpeedN()Gets coordinate of velocity of body frame with respect ECEF frame and resolved along North axis.- Returns:
- North velocity coordinate.
-
setSpeedN
public void setSpeedN(com.irurueta.units.Speed speedN) Sets coordinate of velocity of body frame with respect ECEF frame and resolved along North axis.- Parameters:
speedN
- North velocity coordinate to be set.
-
getSpeedE
public void getSpeedE(com.irurueta.units.Speed result) Gets coordinate of velocity of body frame with respect ECEF frame and resolved along East axis.- Parameters:
result
- instance where East velocity coordinate will be stored.
-
getSpeedE
public com.irurueta.units.Speed getSpeedE()Gets coordinate of velocity of body frame with respect ECEF frame and resolved along East axis.- Returns:
- East velocity coordinate.
-
setSpeedE
public void setSpeedE(com.irurueta.units.Speed speedE) Sets coordinate of velocity of body frame with respect ECEF frame and resolved along East axis.- Parameters:
speedE
- East velocity coordinate to be set.
-
getSpeedD
public void getSpeedD(com.irurueta.units.Speed result) Gets coordinate of velocity of body frame with respect ECEF frame and resolved along Down axis.- Parameters:
result
- instance where Down velocity coordinate will be stored.
-
getSpeedD
public com.irurueta.units.Speed getSpeedD()Gets coordinate of velocity of body frame with respect ECEF frame and resolved along Down axis.- Returns:
- Down velocity coordinate.
-
setSpeedD
public void setSpeedD(com.irurueta.units.Speed speedD) Sets coordinate of velocity of body frame with respect ECEF frame and resolved along Down axis.- Parameters:
speedD
- Down velocity coordinate to be set.
-
setCoordinates
public void setCoordinates(com.irurueta.units.Speed speedN, com.irurueta.units.Speed speedE, com.irurueta.units.Speed speedD) Sets velocity coordinates of body frame resolved along North, East, Down axes.- Parameters:
speedN
- North velocity coordinate.speedE
- East velocity coordinate.speedD
- Down velocity coordinate.
-
hashCode
public int hashCode()Computes and returns hash code for this instance. Hash codes are almost unique values that are useful for fast classification and storage of objects in collections. -
equals
Checks if provided object is a BodyVelocity having exactly the same contents as this instance. -
clone
Makes a copy of this instance.- Overrides:
clone
in classObject
- Returns:
- a copy of this instance.
- Throws:
CloneNotSupportedException
- if clone fails for some reason.
-