Search Results for

    Show / Hide Table of Contents

    Struct Direction3D

    Represents a geometric 3D direction.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: TopSolid.Kernel.Automating
    Assembly: TopSolid.Kernel.Automating.dll
    Syntax
    [DataContract]
    [AvailableSinceVersion(7, 6, 0, 0)]
    public struct Direction3D
    Remarks

    The direction is defined by a unit vector, so (X * X + Y * Y + Z * Z) = 1.

    This structure is available since v7.6.

    Constructors

    Name Description
    Direction3D(double, double, double)

    Initializes a new instance of the Direction3D structure with its coordinates.

    Fields

    Name Description
    DX

    Positive X direction, i.e. (1,0,0).

    DY

    Positive Y direction, i.e. (0,1,0).

    DZ

    Positive Z direction, i.e. (0,0,1).

    X

    X component.

    Y

    Y component.

    Z

    Z component.

    Methods

    Name Description
    IsParallelTo(Direction3D, bool)

    Tells whether this direction is parallel to another direction.

    Operators

    Name Description
    operator /(Direction3D, double)

    Divides a direction by a double value.

    operator ^(Direction3D, Direction3D)

    Computes the cross product of two directions.

    implicit operator Vector3D(Direction3D)

    Casts a direction into a vector.

    operator *(double, Direction3D)

    Multiplies a double value with a direction.

    operator *(Direction3D, double)

    Multiplies a direction with a double value.

    operator *(Direction3D, Direction3D)

    Computes the dot product of two directions.

    operator -(Direction3D)

    Negates a direction.

    In this article
    Back to top
    • Term of use
    • Corporate information
    • Privacy Policy - GDPR

    Copyright ©2025 TopSolid - All rights reserved.