1
0
mirror of https://github.com/klmp200/sierpinski-fractales.git synced 2024-06-02 12:49:39 +00:00
sierpinski-fractales/src/main/sarl/io/sarl/demos/sierpinski/objects/Triangle.sarl
2017-05-12 16:39:13 +02:00

33 lines
587 B
Plaintext

package io.sarl.demos.sierpinski.objects
class Triangle {
private var bottomLeft: Vector2D
private var bottomRight: Vector2D
private var top: Vector2D
new (){
bottomLeft = new Vector2D
bottomRight = new Vector2D
top = new Vector2D
}
new (bottomLeft: Vector2D, bottomRight: Vector2D, top: Vector2D){
this.bottomLeft = bottomLeft
this.top = top
this.bottomRight = bottomRight
}
public def getBottomLeft(): Vector2D {
return bottomLeft
}
public def getBottomRight(): Vector2D {
return bottomRight
}
public def getTop(): Vector2D {
return top
}
}