Skip to content

editorGlobalsDirectionRange

Class: DirectionRange

A two-dimensional range of possible angles, a straight line on the sphere of possible directions. Can only store ranges with an angle lower than 180 degrees.

Hierarchy

  • DirectionRange

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

+ new DirectionRange(start: Vector3, end: Vector3, plateSides: PlateSides): DirectionRange

Defined in src/model/data/Joints/Directions/DirectionRange.ts:16

Parameters:

Name Type
start Vector3
end Vector3
plateSides PlateSides

Returns: DirectionRange

Properties

Private Readonly end

end: Vector3

Defined in src/model/data/Joints/Directions/DirectionRange.ts:15


Private Readonly plateSides

plateSides: PlateSides

Defined in src/model/data/Joints/Directions/DirectionRange.ts:16


Private Readonly start

start: Vector3

Defined in src/model/data/Joints/Directions/DirectionRange.ts:14

Methods

Private _rangeEqual

_rangeEqual(other: DirectionRange): boolean

Defined in src/model/data/Joints/Directions/DirectionRange.ts:128

Parameters:

Name Type
other DirectionRange

Returns: boolean


Private _rangeIntersection

_rangeIntersection(other: DirectionRange): IDirectionSpace

Defined in src/model/data/Joints/Directions/DirectionRange.ts:67

Parameters:

Name Type
other DirectionRange

Returns: IDirectionSpace


containsDirection

containsDirection(direction: Vector3): boolean

Implementation of IDirectionSpace

Defined in src/model/data/Joints/Directions/DirectionRange.ts:32

Parameters:

Name Type
direction Vector3

Returns: boolean


exampleDirection

exampleDirection(): Vector3

Implementation of IDirectionSpace

Defined in src/model/data/Joints/Directions/DirectionRange.ts:24

Returns: Vector3


getPlateSides

getPlateSides(): PlateSides

Implementation of IDirectionSpace

Defined in src/model/data/Joints/Directions/DirectionRange.ts:63

Returns: PlateSides


intersectWith

intersectWith(other: IDirectionSpace): IDirectionSpace

Implementation of IDirectionSpace

Defined in src/model/data/Joints/Directions/DirectionRange.ts:55

Parameters:

Name Type
other IDirectionSpace

Returns: IDirectionSpace


isEmpty

isEmpty(): boolean

Implementation of IDirectionSpace

Defined in src/model/data/Joints/Directions/DirectionRange.ts:28

Returns: boolean