Search Results for

    Show / Hide Table of Contents

    Struct XbimVector3D

    Implements
    IVector3D
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: Xbim.Common.Geometry
    Assembly: Xbim.Common.dll
    Syntax
    public struct XbimVector3D : IVector3D

    Constructors

    | Improve this Doc View Source

    XbimVector3D(Double)

    Declaration
    public XbimVector3D(double v)
    Parameters
    Type Name Description
    System.Double v
    | Improve this Doc View Source

    XbimVector3D(Double, Double, Double)

    Declaration
    public XbimVector3D(double vx, double vy, double vz)
    Parameters
    Type Name Description
    System.Double vx
    System.Double vy
    System.Double vz

    Fields

    | Improve this Doc View Source

    X

    Declaration
    public readonly double X
    Field Value
    Type Description
    System.Double
    | Improve this Doc View Source

    Y

    Declaration
    public readonly double Y
    Field Value
    Type Description
    System.Double
    | Improve this Doc View Source

    Z

    Declaration
    public readonly double Z
    Field Value
    Type Description
    System.Double
    | Improve this Doc View Source

    Zero

    Declaration
    public static readonly XbimVector3D Zero
    Field Value
    Type Description
    XbimVector3D

    Properties

    | Improve this Doc View Source

    Length

    Declaration
    public readonly double Length { get; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    Modulus

    Declaration
    public readonly double Modulus { get; }
    Property Value
    Type Description
    System.Double

    Methods

    | Improve this Doc View Source

    Add(XbimVector3D, XbimVector3D)

    Declaration
    public static XbimVector3D Add(XbimVector3D vector1, XbimVector3D vector2)
    Parameters
    Type Name Description
    XbimVector3D vector1
    XbimVector3D vector2
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    Angle(XbimVector3D)

    Declaration
    public double Angle(XbimVector3D other)
    Parameters
    Type Name Description
    XbimVector3D other
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    CrossProduct(XbimVector3D)

    Declaration
    public XbimVector3D CrossProduct(XbimVector3D v2)
    Parameters
    Type Name Description
    XbimVector3D v2
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    CrossProduct(XbimVector3D, XbimVector3D)

    Declaration
    public static XbimVector3D CrossProduct(XbimVector3D v1, XbimVector3D v2)
    Parameters
    Type Name Description
    XbimVector3D v1
    XbimVector3D v2
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    DotProduct(XbimVector3D)

    Declaration
    public double DotProduct(XbimVector3D v2)
    Parameters
    Type Name Description
    XbimVector3D v2
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    DotProduct(XbimVector3D, XbimVector3D)

    Declaration
    public static double DotProduct(XbimVector3D v1, XbimVector3D v2)
    Parameters
    Type Name Description
    XbimVector3D v1
    XbimVector3D v2
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object ob)
    Parameters
    Type Name Description
    System.Object ob
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()
    | Improve this Doc View Source

    IsEqual(XbimVector3D, Double)

    Declaration
    public bool IsEqual(XbimVector3D b, double precision = 1E-09)
    Parameters
    Type Name Description
    XbimVector3D b
    System.Double precision
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsInvalid()

    Declaration
    public bool IsInvalid()
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsNormal(XbimVector3D, Double)

    Returns true if the vectors are normal

    Declaration
    public bool IsNormal(XbimVector3D other, double angularTolerance)
    Parameters
    Type Name Description
    XbimVector3D other

    other vector

    System.Double angularTolerance

    Tolerance in radians

    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsOpposite(XbimVector3D, Double)

    Returns true if the angle is less than tolerance

    Declaration
    public bool IsOpposite(XbimVector3D other, double angularTolerance)
    Parameters
    Type Name Description
    XbimVector3D other

    other vector

    System.Double angularTolerance

    Tolerance in radians

    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsParallel(XbimVector3D, Double)

    Returns true if the vectors are parallel

    Declaration
    public bool IsParallel(XbimVector3D other, double angularTolerance)
    Parameters
    Type Name Description
    XbimVector3D other

    other vector

    System.Double angularTolerance

    Tolerance in radians

    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Max(XbimVector3D, XbimVector3D)

    Declaration
    public static XbimVector3D Max(XbimVector3D a, XbimVector3D b)
    Parameters
    Type Name Description
    XbimVector3D a
    XbimVector3D b
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    Min(XbimVector3D, XbimVector3D)

    Declaration
    public static XbimVector3D Min(XbimVector3D a, XbimVector3D b)
    Parameters
    Type Name Description
    XbimVector3D a
    XbimVector3D b
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    Multiply(Double, XbimVector3D)

    Declaration
    public static XbimVector3D Multiply(double val, XbimVector3D vec)
    Parameters
    Type Name Description
    System.Double val
    XbimVector3D vec
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    Multiply(XbimVector3D, XbimMatrix3D)

    Declaration
    public static XbimVector3D Multiply(XbimVector3D vec, XbimMatrix3D m)
    Parameters
    Type Name Description
    XbimVector3D vec
    XbimMatrix3D m
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    Negated()

    Returns a new vector pointing in the opposite direction

    Declaration
    public XbimVector3D Negated()
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    Normalized()

    Declaration
    public XbimVector3D Normalized()
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    Subtract(XbimVector3D, XbimVector3D)

    Declaration
    public static XbimVector3D Subtract(XbimVector3D vector1, XbimVector3D vector2)
    Parameters
    Type Name Description
    XbimVector3D vector1
    XbimVector3D vector2
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    Operators

    | Improve this Doc View Source

    Addition(XbimVector3D, XbimVector3D)

    Declaration
    public static XbimVector3D operator +(XbimVector3D vector1, XbimVector3D vector2)
    Parameters
    Type Name Description
    XbimVector3D vector1
    XbimVector3D vector2
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    Equality(XbimVector3D, XbimVector3D)

    Declaration
    public static bool operator ==(XbimVector3D v1, XbimVector3D v2)
    Parameters
    Type Name Description
    XbimVector3D v1
    XbimVector3D v2
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Inequality(XbimVector3D, XbimVector3D)

    Declaration
    public static bool operator !=(XbimVector3D v1, XbimVector3D v2)
    Parameters
    Type Name Description
    XbimVector3D v1
    XbimVector3D v2
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Multiply(Double, XbimVector3D)

    Declaration
    public static XbimVector3D operator *(double l, XbimVector3D v1)
    Parameters
    Type Name Description
    System.Double l
    XbimVector3D v1
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    Multiply(XbimVector3D, Double)

    Declaration
    public static XbimVector3D operator *(XbimVector3D v1, double l)
    Parameters
    Type Name Description
    XbimVector3D v1
    System.Double l
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    Multiply(XbimVector3D, XbimMatrix3D)

    Declaration
    public static XbimVector3D operator *(XbimVector3D v1, XbimMatrix3D m)
    Parameters
    Type Name Description
    XbimVector3D v1
    XbimMatrix3D m
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    Subtraction(XbimVector3D, XbimVector3D)

    Declaration
    public static XbimVector3D operator -(XbimVector3D vector1, XbimVector3D vector2)
    Parameters
    Type Name Description
    XbimVector3D vector1
    XbimVector3D vector2
    Returns
    Type Description
    XbimVector3D

    Explicit Interface Implementations

    | Improve this Doc View Source

    IVector3D.X

    Declaration
    readonly double IVector3D.X { get; }
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    IVector3D.Y

    Declaration
    readonly double IVector3D.Y { get; }
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    IVector3D.Z

    Declaration
    readonly double IVector3D.Z { get; }
    Returns
    Type Description
    System.Double

    Implements

    IVector3D
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim