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()
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
Properties
|
Improve this Doc
View Source
Normal
Declaration
public readonly XbimVector3D Normal { get; }
Property Value
|
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
Returns
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
Declaration
public XbimPackedNormal Transform(XbimQuaternion q)
Parameters
Returns
|
Improve this Doc
View Source
Write(BinaryWriter)
Declaration
public void Write(BinaryWriter bw)
Parameters
Type |
Name |
Description |
System.IO.BinaryWriter |
bw |
|