Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

46a43ee1 ecaa 77f4 0bf2 494929b74b29

haplokuon edited this page May 6, 2023 · 1 revision

Vector4 Structure

netDxf 3.0.0 Library

Represent a four component vector of double precision.

Definition

Namespace: netDxf
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public struct Vector4 : IEquatable<Vector4>

VB

Public Structure Vector4
	Implements IEquatable(Of Vector4)

C++

public value class Vector4 : IEquatable<Vector4>

F#

[<SealedAttribute>]
type Vector4 = 
    struct
        inherit ValueType
        interface IEquatable<Vector4>
    end
Inheritance Object → ValueType → Vector4
Implements IEquatable(Vector4)

Constructors

Vector4(Double[]) Initializes a new instance of Vector4.
Vector4(Double, Double, Double, Double) Initializes a new instance of Vector4.

Properties

IsNormalized Gets if the vector has been normalized.
Item Gets or sets a vector element defined by its index.
NaN Represents a vector with not a number components.
UnitW Unit W vector.
UnitX Unit X vector.
UnitY Unit Y vector.
UnitZ Unit Z vector.
W Gets or sets the W component.
X Gets or sets the X component.
Y Gets or sets the Y component.
Z Gets or sets the Z component.
Zero Zero vector.

Methods

Add Adds two vectors.
Distance Obtains the distance between two points.
Divide(Vector4, Vector4) Divides two vectors component by component.
Divide(Vector4, Double) Divides a vector with an scalar.
DotProduct Obtains the dot product of two vectors.
Equals(Object) Indicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object))
Equals(Vector4) Check if the components of two vectors are approximate equal.
Equals(Vector4, Vector4) Check if the components of two vectors are approximate equal.
Equals(Vector4, Double) Check if the components of two vectors are approximate equal.
Equals(Vector4, Vector4, Double) Check if the components of two vectors are approximate equal.
GetHashCode Returns the hash code for this instance.
(Overrides ValueType.GetHashCode())
GetType Gets the Type of the current instance.
(Inherited from Object)
IsNaN Returns a value indicating if any component of the specified vector evaluates to a value that is not a number NaN.
IsZero Returns a value indicating if all components of the specified vector evaluates to zero.
Modulus Obtains the modulus of the vector.
Multiply(Double, Vector4) Multiplies a scalar with a vector (same as u*a, commutative property).
Multiply(Vector4, Vector4) Multiplies two vectors component by component.
Multiply(Vector4, Double) Multiplies a vector with an scalar (same as a*u, commutative property).
Negate Negates a vector.
Normalize() Normalizes the current vector.
Normalize(Vector4) Normalizes the vector.
Round Rounds the components of a vector.
SquareDistance Obtains the square distance between two points.
Subtract Subtracts two vectors.
ToArray Returns an array that represents the vector.
ToString() Obtains a string that represents the vector.
(Overrides ValueType.ToString())
ToString(IFormatProvider) Obtains a string that represents the vector.

Operators

Addition(Vector4, Vector4) Adds two vectors.
Division(Vector4, Vector4) Divides two vectors component by component.
Division(Vector4, Double) Divides an scalar with a vector.
Equality(Vector4, Vector4) Check if the components of two vectors are equal.
Inequality(Vector4, Vector4) Check if the components of two vectors are different.
Multiply(Double, Vector4) Multiplies a scalar with a vector (same as u*a, commutative property).
Multiply(Vector4, Vector4) Multiplies two vectors component by component.
Multiply(Vector4, Double) Multiplies a vector with an scalar (same as a*u, commutative property).
Subtraction(Vector4, Vector4) Subtracts two vectors.
UnaryNegation(Vector4) Negates a vector.

See Also

Reference

netDxf Namespace

Clone this wiki locally