Search Results for

    Show / Hide Table of Contents

    Struct XbimPackedNormal

    Encodes a normal in just two bytes.

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    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 XbimPackedNormal

    Constructors

    | Improve this Doc View Source

    XbimPackedNormal(Byte, Byte)

    Declaration
    public XbimPackedNormal(byte u, byte v)
    Parameters
    Type Name Description
    System.Byte u
    System.Byte v
    | Improve this Doc View Source

    XbimPackedNormal(Double, Double, Double)

    Normalized normal vector. If the vector is not normalized packing will result in wrong results.

    Declaration
    public XbimPackedNormal(double x, double y, double z)
    Parameters
    Type Name Description
    System.Double x

    X direction of the normalized normal vector

    System.Double y

    Y direction of the normalized normal vector

    System.Double z

    Z direction of the normalized normal vector

    | Improve this Doc View Source

    XbimPackedNormal(UInt16)

    Declaration
    public XbimPackedNormal(ushort packedData)
    Parameters
    Type Name Description
    System.UInt16 packedData
    | Improve this Doc View Source

    XbimPackedNormal(XbimVector3D)

    Declaration
    public XbimPackedNormal(XbimVector3D vec)
    Parameters
    Type Name Description
    XbimVector3D vec

    Properties

    | Improve this Doc View Source

    Normal

    Declaration
    public readonly XbimVector3D Normal { get; }
    Property Value
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    U

    Declaration
    public readonly byte U { get; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    V

    Declaration
    public readonly byte V { get; }
    Property Value
    Type Description
    System.Byte

    Methods

    | Improve this Doc View Source

    Read(BinaryReader)

    Declaration
    public void Read(BinaryReader br)
    Parameters
    Type Name Description
    System.IO.BinaryReader br
    | Improve this Doc View Source

    ToUnit16()

    Declaration
    public ushort ToUnit16()
    Returns
    Type Description
    System.UInt16
    | Improve this Doc View Source

    Transform(XbimQuaternion)

    Declaration
    public XbimPackedNormal Transform(XbimQuaternion q)
    Parameters
    Type Name Description
    XbimQuaternion q
    Returns
    Type Description
    XbimPackedNormal
    | Improve this Doc View Source

    Write(BinaryWriter)

    Declaration
    public void Write(BinaryWriter bw)
    Parameters
    Type Name Description
    System.IO.BinaryWriter bw
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim