ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX Namespace / Vector2 Structure
Fields Properties Methods


In This Topic
    Vector2 Structure Members
    In This Topic

    The following tables list the members exposed by Vector2.

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Fields
     NameDescription
    Public Fieldstatic (Shared in Visual Basic)A Vector2 with all of its components set to one.  
    Public FieldThe size of the Vector2 type, in bytes.  
    Public Fieldstatic (Shared in Visual Basic)The X unit Vector2 (1, 0).  
    Public Fieldstatic (Shared in Visual Basic)The Y unit Vector2 (0, 1).  
    Public FieldThe X component of the vector.  
    Public FieldThe Y component of the vector.  
    Public Fieldstatic (Shared in Visual Basic)A Vector2 with all of its components set to zero.  
    Top
    Public Properties
     NameDescription
    Public PropertyGets a value indicting whether this instance is normalized.  
    Public PropertyGets or sets the component at the specified index.  
    Public PropertyGets the length of the vector.  
    Public PropertyGets the squared length of the vector.  
    Top
    Public Methods
     NameDescription
    Public Methodstatic (Shared in Visual Basic)Returns a vector whose elements are the absolute values of each of the specified vector's elements.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Calculates the absolute value vector.  
    Public Methodstatic (Shared in Visual Basic)Adds two vectors.  
    Public Methodstatic (Shared in Visual Basic)Adds two vectors.  
    Public Methodstatic (Shared in Visual Basic)Calculates an angle between two vectors, in radians.  
    Public Methodstatic (Shared in Visual Basic)Restricts a vector between a minimum and a maximum value.  
    Public Methodstatic (Shared in Visual Basic)Restricts a vector between a minimum and a maximum value.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Divides the specified vector by a specified scalar value.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Divides the specified vector by a specified scalar value.  
    Public Methodstatic (Shared in Visual Basic)Calculates the dot product of two vectors.  
    Public Methodstatic (Shared in Visual Basic)Calculates the dot product of two vectors.  
    Public MethodOverloaded. Determines whether the specified Vector2 is equal to this instance.  
    Public MethodDetermines whether the specified Vector2 is equal to this instance.  
    Public MethodReturns a hash code for this instance.  
    Public Methodstatic (Shared in Visual Basic)Performs a linear interpolation between two vectors based on the given weighting.  
    Public Methodstatic (Shared in Visual Basic)Performs a linear interpolation between two vectors based on the given weighting.  
    Public Methodstatic (Shared in Visual Basic)Returns a vector containing the largest components of the specified vectors.  
    Public Methodstatic (Shared in Visual Basic)Returns a vector containing the largest components of the specified vectors.  
    Public Methodstatic (Shared in Visual Basic)Returns a vector containing the smallest components of the specified vectors.  
    Public Methodstatic (Shared in Visual Basic)Returns a vector containing the smallest components of the specified vectors.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Scales a vector by the given value.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Scales a vector by the given value.  
    Public Methodstatic (Shared in Visual Basic)Reverses the direction of a given vector.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Reverses the direction of the vector.  
    Public Methodstatic (Shared in Visual Basic)Converts the vector into a unit vector.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Converts the vector into a unit vector.  
    Public Methodstatic (Shared in Visual Basic)Subtracts two vectors.  
    Public Methodstatic (Shared in Visual Basic)Subtracts two vectors.  
    Public MethodCreates an array containing the elements of the vector.  
    Public MethodOverloaded. Returns a System.String that represents this instance.  
    Top
    Public Operators
    Overloaded. Adds two vectors.
    Overloaded. Divides the specified vector by a specified scalar value.
    Tests for equality between two objects.
    Overloaded. Performs an explicit conversion from Vector2 to Vector3.
    Tests for inequality between two objects.
    Overloaded. Scales a vector by the given value.
    Subtracts two vectors.
    Reverses the direction of a given vector.
    Top
    See Also