Skip to main content

Vector3D Structure

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public readonly struct Vector3D : IEquatable<Vector3D>
View Source
InheritanceObjectValueType → Vector3D
ImplementsIEquatable(Vector3D)

Constructors

Vector3D(Double, Double, Double)Initializes a new instance of the Vector3D class

Properties

LengthLength of the vector.
X 
Y 
Z 

Methods

Abs()Returns a vector whose elements are the absolute values of each of the specified vector's elements.
Add(Vector3D, Vector3D)Adds the second to the first vector
Clamp(Vector3D, Vector3D, Vector3D)Restricts a vector between a minimum and a maximum value.
Distance(Vector3D, Vector3D)Computes the Euclidean distance between the two given points.
DistanceSquared(Vector3D, Vector3D)Computes the squared Euclidean distance between the two given points.
Divide(Vector3D, Vector3D)Divides the first vector by the second.
Divide(Vector3D, Double)Divides the vector by the given scalar.
Dot(Vector3D, Vector3D)Calculates the dot product of two vectors.
GetType()Gets the Type of the current instance.
(Inherited from Object)
Max(Vector3D, Vector3D)Returns a vector whose elements are the maximum of each of the pairs of elements in two specified vectors
Min(Vector3D, Vector3D)Returns a vector whose elements are the minimum of each of the pairs of elements in two specified vectors
Multiply(Vector3D, Vector3D)Multiplies the first vector by the second.
Multiply(Vector3D, Double)Multiplies the vector by the given scalar.
Normalize(Vector3D)Returns a normalized version of this vector.
Parse(String)Parses a Vector string.
Substract(Vector3D, Vector3D)Subtracts the second from the first vector

Operators

Addition(Vector3D, Vector3D)Adds the second to the first vector
Implicit(Vector3 to Vector3D) 
Multiply(Vector3D, Double)Multiplies the vector by the given scalar.
Subtraction(Vector3D, Vector3D)Subtracts the second from the first vector
UnaryNegation(Vector3D)Negates the vector

See Also

Reference

Avalonia Namespace