Constructors
constructor
- new SnapLine(pPoint1: Vector3, pPoint2: Vector3, pIsSegment?: boolean): SnapLine
-
Parameters
-
pPoint1: Vector3
-
pPoint2: Vector3
-
pIsSegment: boolean = false
Properties
isSegment
isSegment: boolean
Accessors
direction
- get direction(): Vector3
-
Returns Vector3
point1
- get point1(): Vector3
-
Returns Vector3
point2
- get point2(): Vector3
-
Returns Vector3
Methods
setPoint1
- setPoint1(pPoint: Vector3): void
-
Returns void
setPoint2
- setPoint2(pPoint: Vector3): void
-
Returns void
Static
FromAxis
- FromAxis(pOrigin: Vector3, pAxis: Vector3): SnapLine
-
Parameters
-
pOrigin: Vector3
-
pAxis: Vector3
Static
Snap
- Snap(pPos: Vector3, pLines: SnapLine[], pView: null | View, pSnapDistance?: number): null | SnapResult
-
Parameters
-
pPos: Vector3
-
-
pView: null | View
-
pSnapDistance: number = 15
Find nearest snap line. If pView is null pSnapDistance will be handled as meter otherwise as pixel.