Function
GSPointOffsetFromLine(_:_:_:_:) GSPointOffsetFromLine GSPointOffsetFromLine
Like GSPointOnLine, but with the returned point offset by a certain amount onto a parallel line. So, more like the inverse of GSNearestPointOnLine.
Declaration
func GSPointOffsetFromLine(
_ p0: NSPoint,
_ p1: NSPoint,
_ t: CGFloat,
_ offset: CGFloat
) -> NSPointDeclaration
NSPoint GSPointOffsetFromLine(
NSPoint p0,
NSPoint p1,
CGFloat t,
CGFloat offset
);Declaration
GSPointOffsetFromLine(
p0: NSPoint,
p1: NSPoint,
t: float,
offset: float
) -> NSPointParameters
offsetOffset to the right of the line if positive or to the left of the line if negative.
See Also
Curve Evaluation and Tangents
Returns a new point offset by the given distance in the direction of the given angle in radiants.