Class Vertex
- java.lang.Object
-
- com.google.ar.sceneform.rendering.Vertex
-
public class Vertex extends java.lang.Object
Represents a Vertex for aRenderableDefinition
. Used for constructing renderables dynamically.- See Also:
ModelRenderable.Builder
,ViewRenderable.Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Vertex.Builder
Factory class forVertex
.static class
Vertex.UvCoordinate
Represents a texture Coordinate for a Vertex.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Vertex.Builder
builder()
Color
getColor()
Vector3
getNormal()
Vector3
getPosition()
Vertex.UvCoordinate
getUvCoordinate()
void
setColor(Color color)
void
setNormal(Vector3 normal)
void
setPosition(Vector3 position)
void
setUvCoordinate(Vertex.UvCoordinate uvCoordinate)
-
-
-
Method Detail
-
setPosition
public void setPosition(Vector3 position)
-
getPosition
public Vector3 getPosition()
-
setNormal
public void setNormal(@Nullable Vector3 normal)
-
getNormal
@Nullable public Vector3 getNormal()
-
setUvCoordinate
public void setUvCoordinate(@Nullable Vertex.UvCoordinate uvCoordinate)
-
getUvCoordinate
@Nullable public Vertex.UvCoordinate getUvCoordinate()
-
setColor
public void setColor(@Nullable Color color)
-
getColor
@Nullable public Color getColor()
-
builder
public static Vertex.Builder builder()
-
-