UV Members

The UV type exposes the following members.

Constructors

  NameDescription
Public methodUV()()()()
Creates a default UV with the values (0, 0).
Public methodUV(Double, Double)
Creates a UV with the supplied coordinates.

Methods

  NameDescription
Public methodAdd
Adds the specified 2-D vector to this 2-D vector and returns the result.
Public methodAngleTo
Returns the angle between this vector and the specified vector.
Public methodCrossProduct
The cross product of this 2-D vector and the specified 2-D vector.
Public methodDistanceTo
Returns the distance from this 2-D point to the specified 2-D point.
Public methodDivide
Divides this 2-D vector by the specified value and returns the result.
Public methodDotProduct
The dot product of this 2-D vector and the specified 2-D vector.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLength
The length of this 2-D vector.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsAlmostEqualTo(UV)
Determines whether this 2-D vector and the specified 2-D vector are the same within the tolerance (1.0e-09).
Public methodIsAlmostEqualTo(UV, Double)
Determines whether this 2-D vector and the specified 2-D vector are the same within a specified tolerance.
Public methodIsUnitLength
The boolean value indicates whether this 2-D vector is of unit length.
Public methodIsZeroLength
The boolean value indicates whether this 2-D vector is a zero vector.
Public methodMultiply
Multiplies this 2-D vector by the specified value and returns the result.
Public methodNegate
Negates this 2-D vector.
Public methodNormalize
Returns a new UV whose coordinates are the normalized values from this vector.
Public methodSubtract
Subtracts the specified 2-D vector from this 2-D vector and returns the result.
Public methodToString
Gets formatted string showing (U, V) with values formatted to 9 decimal places.
(Overrides Object..::..ToString()()()().)

Operators

  NameDescription
Public operatorStatic memberAddition
Adds the two specified 2-D vectors and returns the result.
Public operatorStatic memberDivision
Divides the specified 2-D vector by the specified value.
Public operatorStatic memberMultiply(Double, UV)
The product of the specified number and the specified 2-D vector.
Public operatorStatic memberMultiply(UV, Double)
The product of the specified number and the specified 2-D vector.
Public operatorStatic memberSubtraction
Subtracts the two specified 2-D vectors and returns the result.
Public operatorStatic memberUnaryNegation
Negates this 2-D vector and returns the result.

Properties

  NameDescription
Public propertyStatic memberBasisU
The basis of the U axis.
Public propertyStatic memberBasisV
The basis of the V axis.
Public propertyItem
Public propertyU
Gets the first coordinate.
Public propertyV
Gets the second coordinate.
Public propertyStatic memberZero
The coordinate origin or zero 2-D vector.

See Also