public class StrokePoint
extends java.lang.Object
Brush
to
render the stroke, such as x and y coordinates, motion speed, acceleration,
etc.Stroke
Modifier and Type | Field and Description |
---|---|
float |
height |
float |
motionAcceleration |
float |
motionSpeed |
float |
width |
float |
x |
float |
xSpeed |
float |
y |
float |
ySpeed |
Constructor and Description |
---|
StrokePoint(float x,
float y,
float width,
float height,
float xSpeed,
float ySpeed,
float motionSpeed,
float motionAcceleration)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
dist(StrokePoint p)
Find the distance between two points.
|
public float x
public float y
public float width
public float height
public float xSpeed
public float ySpeed
public float motionSpeed
public float motionAcceleration
public StrokePoint(float x, float y, float width, float height, float xSpeed, float ySpeed, float motionSpeed, float motionAcceleration)
x
- y
- width
- height
- xSpeed
- ySpeed
- motionSpeed
- motionAcceleration
- public float dist(StrokePoint p)
p
- another point