Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NPoint Structure
Fields Properties Methods


In This Topic
    NPoint Structure Members
    In This Topic

    The following tables list the members exposed by NPoint.

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Fields
     NameDescription
    Public Fieldstatic (Shared in Visual Basic)The NaN point (NaN, NaN).  
    Public Fieldstatic (Shared in Visual Basic)Unit X point (1, 0).  
    Public Fieldstatic (Shared in Visual Basic)Unit Y point (1, 0).  
    Public FieldThe X coordinate of this point.  
    Public FieldThe Y coordinate of this point.  
    Public Fieldstatic (Shared in Visual Basic)The zero point (0, 0).  
    Top
    Public Properties
     NameDescription
    Public PropertyDetermines whether the vector is the unit vector (e.g. Length == 1)  
    Public PropertyChecks whether this point is valid, i.e. whether X and Y are both different from Double.NaN.  
    Public PropertyChecks whether this is the zero point (i.e. x and y are 0).  
    Public PropertyGets the vector length  
    Public PropertyGets the vector length square (length * length)  
    Public PropertyGets the unit vector (with length == 1), which is perpendicular to this vector  
    Public PropertyGets a vector, which is perpendicular to this vector  
    Top
    Public Methods
     NameDescription
    Public MethodClamps the point coordinates to the specified rect.  
    Public MethodDeserializes the object state from the specified property bag.  
    Public MethodMeasures the distance between this point and the specified point.  
    Public MethodPerforms a scalar division of a vector.  
    Public MethodComputes the dot product of this vector with another vector. Geometrically the dot product is |a| * |b| * cos(angle), where

    angle - is the angle between the two vectors

    |a| - is the length of this vector

    |b| - is the length of the specified vector.

     
    Public MethodOverloaded. Checks whether this point is equal to the given point.  
    Public MethodChecks whether this point is equal to the other point with an epsilon delta.  
    Public MethodGets the compass direction which corresponds to the vector formed by this point and the specified point.  
    Public Method  
    Public MethodInverses this vector (e.g. makes this vector with oposite direction).  
    Public MethodPerforms a scalar multiplication of this vector with the specified scalar and returns the resulting vector.  
    Public MethodMakes this vector the unit vector (e.g. its length becomes 1).  
    Public MethodComputes the perpendicular dot product of this vector with another vector Geometrically the perpendicular dot product is |a| * |b| * sin(angle), where

    angle - is the angle between the two vectors

    |a| - is the length of this vector

    |b| - is the length of the specified vector.

     
    Public MethodOverloaded. Rotates the point with the specified angle around the specified pin.  
    Public MethodOverloaded. Round this point.  
    Public MethodOverloaded. Scales the point around the specified pin with the specified scale factors.  
    Public MethodSerializes the object state into the specified property bag.  
    Public MethodReturns the string representation of this object  
    Public MethodTranslates the point with the specified amounts.  
    Top
    Public Operators
    Adds b coordinates to a coordinates and returns the resulting point (binary +)
    Divides the a coordinates by the specified divisor
    Determines whether a is equal to b
    Determines whether a is not equal to b
    Multiplies the a coordinates by the specified miltiplier
    Subtracts b coordinates from a coordinates and returns the resulting point (binary -)
    Top
    See Also