 # ShapeUtil

#### object ShapeUtil

Linear Supertypes
AnyRef, Any
Ordering
1. Alphabetic
2. By inheritance
Inherited
1. ShapeUtil
2. AnyRef
3. Any
1. Hide All
2. Show all
Visibility
1. Public
2. All

### Value Members

1. #### final def !=(arg0: AnyRef): Boolean

Definition Classes
AnyRef
2. #### final def !=(arg0: Any): Boolean

Definition Classes
Any
3. #### final def ##(): Int

Definition Classes
AnyRef → Any
4. #### final def ==(arg0: AnyRef): Boolean

Definition Classes
AnyRef
5. #### final def ==(arg0: Any): Boolean

Definition Classes
Any
6. #### final def asInstanceOf[T0]: T0

Definition Classes
Any
7. #### def clone(): AnyRef

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws()
8. #### final def eq(arg0: AnyRef): Boolean

Definition Classes
AnyRef
9. #### def equals(arg0: Any): Boolean

Definition Classes
AnyRef → Any
10. #### def evalBoxRadius2D(p0: Point3, p1: Point3, p2: Point3, p3: Point3, w: Double, h: Double): Double

Compute the length of a vector along the edge from the box center that match the box "radius".

Compute the length of a vector along the edge from the box center that match the box "radius".

w

h

returns

The length of the radius along the edge vector.

11. #### def evalEllipseRadius2D(p0: Point3, p1: Point3, p2: Point3, p3: Point3, w: Double, h: Double): Double

Compute the length of a vector along the edge from the ellipse center that match the ellipse radius.

Compute the length of a vector along the edge from the ellipse center that match the ellipse radius.

w

h

returns

The length of the radius along the edge vector.

Attributes
protected
12. #### def evalEllipseRadius2D(p0: Point3, p1: Point3, p2: Point3, p3: Point3, w: Double, h: Double, s: Double): Double

Compute the length of a (eventually cubic curve) vector along the edge from the ellipse center toward the intersection point with the ellipse that match the ellipse radius.

Compute the length of a (eventually cubic curve) vector along the edge from the ellipse center toward the intersection point with the ellipse that match the ellipse radius. If `p1` and `p2` are null, the edge is considered a straight line, else a cubic curve.

p0

the origin point of the edge

p1

the first cubic-curve control point or null for straight edge.

p2

the second cubic-curve control point or null for straight edge.

p3

the target point of the edge.

w

the width of the ellipse.

h

the height of the ellipse.

s

the width of the stroke of the ellipse shape.

Attributes
protected
13. #### def evalTargetRadius2D(style: Style, skeleton: AreaSkeleton, p0: Point3, p1: Point3, p2: Point3, p3: Point3, camera: Camera): Double

Try to evaluate the "radius" of the given area skeleton considering a cubic curve edge between points `p0` and point `p3` and curving to control points `p1` and `p2`.

Try to evaluate the "radius" of the given area skeleton considering a cubic curve edge between points `p0` and point `p3` and curving to control points `p1` and `p2`. In other words, this method computes the intersection point between the edge and the area geometry. The returned length of the line going from the center of the skeleton geometry toward the point of intersection between the skeleton geometry and the edge.

style

The style of the area skeleton.

skeleton

The skeleton.

p0

The origin point of the edge.

p3

the target point of the edge.

camera

the camera.

returns

14. #### def evalTargetRadius2D(edge: GraphicEdge, p0: Point3, p1: Point3, p2: Point3, p3: Point3, camera: Camera): Double

Try to evaluate the "radius" of the given area skeleton considering a cubic curve edge between points `p0` and point `p3` and curving to control points `p1` and `p2`.

Try to evaluate the "radius" of the given area skeleton considering a cubic curve edge between points `p0` and point `p3` and curving to control points `p1` and `p2`. In other words, this method computes the intersection point between the edge and the area geometry. The returned length of the line going from the center of the skeleton geometry toward the point of intersection between the skeleton geometry and the edge.

edge

The edge.

p0

The origin point of the edge.

p3

the target point of the edge.

camera

the camera.

returns

15. #### def evalTargetRadius2D(style: Style, skeleton: AreaSkeleton, p0: Point3, p3: Point3, camera: Camera): Double

Try to evaluate the "radius" of the given area skeleton considering an edge between points `p0` and point `p3` (the edge is considered a straight line).

Try to evaluate the "radius" of the given area skeleton considering an edge between points `p0` and point `p3` (the edge is considered a straight line). In other words, this method computes the intersection point between the edge and the area geometry. The returned length of the line going from the center of the skeleton geometry toward the point of intersection between the skeleton geometry and the edge.

style

The style of the area skeleton.

skeleton

The skeleton.

p0

The origin point of the edge.

p3

the target point of the edge.

camera

the camera.

returns

16. #### def evalTargetRadius2D(from: Point3, to: Point3, node: GraphicNode, camera: Camera): Double

Try to evaluate the "radius" of the given node considering an edge between points `from` and `to`.

Try to evaluate the "radius" of the given node considering an edge between points `from` and `to`. In other words, this method computes the intersection point between the edge and the node shape contour. The returned length is the length of a line going from the center of the shape toward the point of intersection between the target node shape contour and the edge.

from

The origin point of the edge.

to

The target point of the edge.

node

The target node shape.

returns

17. #### def evalTargetRadius2D(edge: GraphicEdge, camera: Camera): Double

Try to evaluate the "radius" of the edge target node shape along the edge.

Try to evaluate the "radius" of the edge target node shape along the edge. In other words this method computes the intersection point between the edge and the node shape contour. The returned length is the length of a line going from the center of the shape toward the point of intersection between the target node shape contour and the edge.

edge

The edge (it contains its target node).

camera

the camera.

returns

18. #### def finalize(): Unit

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws()
19. #### final def getClass(): Class[_]

Definition Classes
AnyRef → Any
20. #### def hashCode(): Int

Definition Classes
AnyRef → Any
21. #### final def isInstanceOf[T0]: Boolean

Definition Classes
Any
22. #### def isPointIn(elt: GraphicElement, p: Point3, w: Double, h: Double): Boolean

Compute if point `p` is inside of the shape of `elt` whose overall size is `w` x `h`.

23. #### def isPointIn2DBox(p: Point3, x: Double, y: Double, w: Double, h: Double): Boolean

Compute if point `p` is inside of a rectangular shape of overall size `w` x `h`.

24. #### def isPointIn2DEllipse(p: Point3, x: Double, y: Double, w: Double, h: Double): Boolean

Compute if point `p` is inside of a ellipsoid shape of overall size `w` x `h`.

25. #### final def ne(arg0: AnyRef): Boolean

Definition Classes
AnyRef
26. #### final def notify(): Unit

Definition Classes
AnyRef
27. #### final def notifyAll(): Unit

Definition Classes
AnyRef
28. #### final def synchronized[T0](arg0: ⇒ T0): T0

Definition Classes
AnyRef
29. #### def toString(): String

Definition Classes
AnyRef → Any
30. #### final def wait(): Unit

Definition Classes
AnyRef
Annotations
@throws()
31. #### final def wait(arg0: Long, arg1: Int): Unit

Definition Classes
AnyRef
Annotations
@throws()
32. #### final def wait(arg0: Long): Unit

Definition Classes
AnyRef
Annotations
@throws()