Struct ControlPoint
MAP Control Point data.
Namespace: DIV2.Format.Exporter
Assembly: DIV2.Format.Exporter.dll
Syntax
public struct ControlPoint : ISerializableAsset
Constructors
ControlPoint(BinaryReader)
Initializes a new instance.
Declaration
public ControlPoint(BinaryReader stream)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | stream | A |
ControlPoint(Byte[])
Initializes a new instance.
Declaration
public ControlPoint(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | 4 |
ControlPoint(Double, Double)
Initializes a new instance.
Declaration
public ControlPoint(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
Double | x | X coordinate. |
Double | y | Y coordinate. |
ControlPoint(Int16, Int16)
Initializes a new instance.
Declaration
public ControlPoint(short x, short y)
Parameters
Type | Name | Description |
---|---|---|
Int16 | x | X coordinate. |
Int16 | y | Y coordinate. |
ControlPoint(Int32, Int32)
Initializes a new instance.
Declaration
public ControlPoint(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | X coordinate. |
Int32 | y | Y coordinate. |
ControlPoint(Single, Single)
Initializes a new instance.
Declaration
public ControlPoint(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
Single | x | X coordinate. |
Single | y | Y coordinate. |
Fields
LENGTH
Declaration
public const int LENGTH = null
Field Value
Type | Description |
---|---|
Int32 | Number of items. |
SIZE
Declaration
public const int SIZE = null
Field Value
Type | Description |
---|---|
Int32 | Memory size. |
x
Declaration
public short x
Field Value
Type | Description |
---|---|
Int16 | Horizontal coordinate. |
y
Declaration
public short y
Field Value
Type | Description |
---|---|
Int16 | Vertical coordinate. |
Properties
Item[Int32]
Gets or sets the coordinate value.
Declaration
public short this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of the coordinate in the structure. |
Property Value
Type | Description |
---|---|
Int16 | Returns the coordinate value. |
Methods
GetHashCode()
Generates a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Returns an |
ToString()
Serializes the relevant data of this instance in a
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | Returns a |
Operators
Equality(ControlPoint, ControlPoint)
Equality operator.
Declaration
public static bool operator ==(ControlPoint a, ControlPoint b)
Parameters
Type | Name | Description |
---|---|---|
ControlPoint | a | Left ControlPoint value to compare. |
ControlPoint | b | Right ControlPoint value to compare. |
Returns
Type | Description |
---|---|
Boolean | Returns true if both values are equal. |
Inequality(ControlPoint, ControlPoint)
Inequality operator.
Declaration
public static bool operator !=(ControlPoint a, ControlPoint b)
Parameters
Type | Name | Description |
---|---|---|
ControlPoint | a | Left ControlPoint value to compare. |
ControlPoint | b | Right ControlPoint value to compare. |
Returns
Type | Description |
---|---|
Boolean | Returns true if both values are not equal. |