public final class ElectricFieldVectorComponents extends Object implements IEquatable<ElectricFieldVectorComponents>, ImmutableValueType
| Constructor and Description |
|---|
ElectricFieldVectorComponents()
Initializes a new instance.
|
ElectricFieldVectorComponents(Complex horizontalVectorComponent,
Complex verticalVectorComponent)
Initializes a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Polarization |
computePolarization(PolarizationReferenceAxis referenceAxis)
Computes polarization based on the horizontal and vertical vector components and the supplied polarization reference axis.
|
static boolean |
equals(ElectricFieldVectorComponents left,
ElectricFieldVectorComponents right)
Returns
true if the two instances are exactly equal. |
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
boolean |
equalsType(ElectricFieldVectorComponents other)
Indicates whether another instance of this type is exactly equal to this instance.
|
Complex |
getHorizontalVectorComponent()
Gets the horizontal polarization electric field component.
|
static ElectricFieldVectorComponents |
getUndefined()
Gets a
ElectricFieldVectorComponents with values of 0.0 for both the horizontal and vertical component's real and imaginary parts. |
Complex |
getVerticalVectorComponent()
Gets the vertical polarization electric field component.
|
int |
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
|
static boolean |
notEquals(ElectricFieldVectorComponents left,
ElectricFieldVectorComponents right)
Returns
true if the two instances are not exactly equal. |
public ElectricFieldVectorComponents()
public ElectricFieldVectorComponents(@Nonnull Complex horizontalVectorComponent, @Nonnull Complex verticalVectorComponent)
horizontalVectorComponent - The horizontal polarization electric field component.verticalVectorComponent - The vertical polarization electric field component.@Nonnull public final Complex getHorizontalVectorComponent()
@Nonnull public final Complex getVerticalVectorComponent()
public final Polarization computePolarization(@Nonnull PolarizationReferenceAxis referenceAxis)
referenceAxis - The desired polarization reference axis of the resulting polarization.Polarization instance or null. If null is returned, either the horizontal or vertical electric field magnitude is less than CommunicationsConstants.MinimumElectricFieldValuepublic static boolean equals(@Nonnull ElectricFieldVectorComponents left, @Nonnull ElectricFieldVectorComponents right)
true if the two instances are exactly equal.left - The instance to compare to right.right - The instance to compare to left.true if left represents the same value as right; otherwise false.public static boolean notEquals(@Nonnull ElectricFieldVectorComponents left, @Nonnull ElectricFieldVectorComponents right)
true if the two instances are not exactly equal.left - The instance to compare to right.right - The instance to compare to left.true if left does not represent the same value as right; otherwise false.public boolean equals(Object obj)
equals in class Objectobj - The object to compare to this instance.true if obj is an instance of this type and represents the same value as this instance; otherwise false.Object.hashCode(),
HashMappublic final boolean equalsType(@Nonnull ElectricFieldVectorComponents other)
equalsType in interface IEquatable<ElectricFieldVectorComponents>other - The instance to compare to this instance.true if other represents the same value as this instance; otherwise false.public int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)@Nonnull public static ElectricFieldVectorComponents getUndefined()
ElectricFieldVectorComponents with values of 0.0 for both the horizontal and vertical component's real and imaginary parts.