# OfficeInkPoint

A sampled point in a format-neutral ink stroke.

Struct 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeInkModel.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkModel.cs#L51)

**Base**

`ValueType`

**Implements**

`IEquatable<OfficeInkPoint>`

**Modifiers**

sealed

A sampled point in a format-neutral ink stroke.

## Inheritance

- ValueType
- OfficeInkPoint

## Usage

Explore 9 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Method [OfficeInkPoint.Transform](/api/core/officeimo-drawing-officeinkpoint/#method-transform-officeimo-drawing-officetransform)
- Property [OfficeInkStroke.Points](/api/core/officeimo-drawing-officeinkstroke/#property-points)

### Accepted by parameters 7

- Method [OfficeInkPoint.Equals](/api/core/officeimo-drawing-officeinkpoint/#method-equals-officeimo-drawing-officeinkpoint) parameter `other`
- Method [OfficeInkPoint.op_Equality](/api/core/officeimo-drawing-officeinkpoint/#method-op-equality-officeimo-drawing-officeinkpoint-officeimo-drawing-officeinkpoint) parameter `left`
- Method [OfficeInkPoint.op_Equality](/api/core/officeimo-drawing-officeinkpoint/#method-op-equality-officeimo-drawing-officeinkpoint-officeimo-drawing-officeinkpoint) parameter `right`
- Method [OfficeInkPoint.op_Inequality](/api/core/officeimo-drawing-officeinkpoint/#method-op-inequality-officeimo-drawing-officeinkpoint-officeimo-drawing-officeinkpoint) parameter `left`
- Method [OfficeInkPoint.op_Inequality](/api/core/officeimo-drawing-officeinkpoint/#method-op-inequality-officeimo-drawing-officeinkpoint-officeimo-drawing-officeinkpoint) parameter `right`
- Constructor [OfficeInkStroke.OfficeInkStroke](/api/core/officeimo-drawing-officeinkstroke/#constructor-ctor-collections-generic-ienumerable-officeimo-drawing-officeinkpoint) parameter `points`
- Method [OfficeInkStroke.AddPoint](/api/core/officeimo-drawing-officeinkstroke/#method-addpoint-officeimo-drawing-officeinkpoint) parameter `point`

Filter members 

Show inherited

## Constructors

`public OfficeInkPoint(double x, double y, double? pressure = null, double? tiltX = null, double? tiltY = null, TimeSpan? timestamp = null)` [#](#constructor-ctor-double-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-timespan)

[OfficeInkModel.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkModel.cs#L51)

Creates an ink sample.

Parameters

**x double required**

**y double required**

**pressure double? = null optional**

**tiltX double? = null optional**

**tiltY double? = null optional**

**timestamp System.TimeSpan? = null optional**

## Methods

Equals 2 overloads

`public bool Equals(OfficeInkPoint other)` [#](#method-equals-officeimo-drawing-officeinkpoint)

[OfficeInkModel.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkModel.cs#L79)

Indicates whether the current object is equal to another object of the same type.

Parameters

**other OfficeIMO.Drawing.OfficeInkPoint required**

An object to compare with this object.

Returns

`bool` true if the current object is equal to the other parameter; otherwise, false.

`public override bool Equals(object? obj)` [#](#method-equals-object)

[OfficeInkModel.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkModel.cs#L86)

Indicates whether this instance and a specified object are equal.

Parameters

**obj object? required**

The object to compare with the current instance.

Returns

`bool` true if obj and this instance are the same type and represent the same value; otherwise, false.

`public override int GetHashCode()` [#](#method-gethashcode)

[OfficeInkModel.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkModel.cs#L91)

Returns the hash code for this instance.

Returns

`int` A 32-bit signed integer that is the hash code for this instance.

`public static bool op_Equality(OfficeInkPoint left, OfficeInkPoint right)` [#](#method-op-equality-officeimo-drawing-officeinkpoint-officeimo-drawing-officeinkpoint)

[OfficeInkModel.cs:102](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkModel.cs#L102)

Returns true when two samples are equal.

Parameters

**left OfficeIMO.Drawing.OfficeInkPoint required**

**right OfficeIMO.Drawing.OfficeInkPoint required**

Returns

`bool`

`public static bool op_Inequality(OfficeInkPoint left, OfficeInkPoint right)` [#](#method-op-inequality-officeimo-drawing-officeinkpoint-officeimo-drawing-officeinkpoint)

[OfficeInkModel.cs:105](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkModel.cs#L105)

Returns true when two samples are different.

Parameters

**left OfficeIMO.Drawing.OfficeInkPoint required**

**right OfficeIMO.Drawing.OfficeInkPoint required**

Returns

`bool`

`public OfficeInkPoint Transform(OfficeTransform transform)` [#](#method-transform-officeimo-drawing-officetransform)

[OfficeInkModel.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkModel.cs#L73)

Returns this sample transformed into another canvas coordinate space.

Parameters

**transform OfficeIMO.Drawing.OfficeTransform required**

Returns

`OfficeInkPoint`

## Inherited Methods

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public override string? ToString()` [#](#method-tostring)

Inherited from ValueType

Returns

`string?`

## Properties

`public double X { get; }` [#](#property-x)

[OfficeInkModel.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkModel.cs#L26)

Horizontal coordinate in the owning canvas unit.

`public double Y { get; }` [#](#property-y)

[OfficeInkModel.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkModel.cs#L29)

Vertical coordinate in the owning canvas unit.

`public double? Pressure { get; }` [#](#property-pressure)

[OfficeInkModel.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkModel.cs#L32)

Optional normalized pressure from 0 through 1.

`public double? TiltX { get; }` [#](#property-tiltx)

[OfficeInkModel.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkModel.cs#L35)

Optional horizontal pen tilt in degrees.

`public double? TiltY { get; }` [#](#property-tilty)

[OfficeInkModel.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkModel.cs#L38)

Optional vertical pen tilt in degrees.

`public TimeSpan? Timestamp { get; }` [#](#property-timestamp)

[OfficeInkModel.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkModel.cs#L41)

Optional sample timestamp relative to the stroke origin.

<!-- PowerForge markdown artifact sha256:7C5253CB1294F76C2966FF99961A7F4B14D0C11B621B2EE79F69EA1112B80D41 -->
