Constructors
constructor
- new default<T>(vertex1: T, vertex2: T): default<T>
-
Properties
Readonly
vertex1
vertex1: T
Readonly
vertex2
vertex2: T
Accessors
comparisonStrings
- get comparisonStrings(): string[]
-
Returns string[]
distance
- get distance(): number
-
Returns number
Methods
bresenham
- bresenham(includeEndpoints: boolean): IVector2[]
-
Parameters
-
includeEndpoints: boolean
ceil
- ceil(): default<T>
-
endpointEquals
- endpointEquals(vertex: default): boolean
-
Returns boolean
equals
- equals(edge: default<T>): boolean
-
Returns boolean
floor
- floor(): default<T>
-
toString
- toString(): string
-
Returns string
Static
equals
- equals<T>(edge1: default<T>, edge2: default<T>): boolean
-
Returns boolean
Distance between the vertices